The js file is missing in w3c-keyname package #11

Closed
opened 2021-10-15 20:05:05 +02:00 by riddhi92 · 1 comment
riddhi92 commented 2021-10-15 20:05:05 +02:00 (Migrated from github.com)

Hi,
I am trying to run a js file on graalvm which has dependency on w3c-keyname package. Graalvm currently only supports js.commonjs-require option which means all the files should be of js or cjs.js format.

w3c-keyname only produces index.cjs, index.es.js, and index.d.ts (no index.js or index.cjs.js). Due to which graalvm is failing with error TypeError: Cannot load CommonJS module: 'w3c-keyname'.

Please suggest a fix for this or please update the w3c-keyname with index.js or index.cjs.js file.

Thank you.

Hi, I am trying to run a js file on graalvm which has dependency on w3c-keyname package. Graalvm currently only supports `js.commonjs-require` option which means all the files should be of js or cjs.js format. w3c-keyname only produces index.cjs, index.es.js, and index.d.ts (no index.js or index.cjs.js). Due to which graalvm is failing with error ` TypeError: Cannot load CommonJS module: 'w3c-keyname'`. Please suggest a fix for this or please update the w3c-keyname with index.js or index.cjs.js file. Thank you.
marijnh commented 2021-10-15 21:06:21 +02:00 (Migrated from github.com)

The .cjs file is a CommonJS package. If your VM isn't capable of running files that don't have a .js extension, I suggest you file that as a bug in the VM. This is published as an npm package for node and browsers, and I'm not adjusting the package to account for limitations in other platforms at this time.

The .cjs file is a CommonJS package. If your VM isn't capable of running files that don't have a .js extension, I suggest you file that as a bug in the VM. This is published as an npm package for node and browsers, and I'm not adjusting the package to account for limitations in other platforms at this time.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
marijn/w3c-keyname#11
No description provided.