tab-container-element icon indicating copy to clipboard operation
tab-container-element copied to clipboard

Use .mjs module or add "type": "module" for package.json

Open tarngerine opened this issue 1 year ago • 0 comments

In Sveltekit I get a warning about the package.json for this npm not being formatted correctly:

@github/tab-container-element doesn't appear to be written in CJS, but also doesn't appear to be a valid ES module (i.e. it doesn't have "type": "module" or an .mjs extension for the entry point). Please contact the package author to fix.

More details in this linter: https://publint.bjornlu.com/@github/[email protected]

"main": "dist/index.js" dist/index.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. dist/index.mjs

tarngerine avatar Aug 05 '22 16:08 tarngerine