The js file is missing in w3c-keyname package #11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
I am trying to run a js file on graalvm which has dependency on w3c-keyname package. Graalvm currently only supports
js.commonjs-requireoption 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.
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.