Missing "module" field in package.json
See original GitHub issueHello, i find easy-peasy.esm.js in the dist folder, but there is no “module” filed in package.json, this will cause module resolver error in some module bundler (eg: Vite).
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
A module may be missing from 'dependencies' in package.json
`Cannot find module 'internal/util/types' is the error I get, I am trying to build a discord.js bot and push it to heroku.
Read more >module field in package.json doesn't point to an esm ... - GitHub
Describe the bug module field in package.json points to minified version of the library. Also causes issues when using npm link across ...
Read more >package.json - npm Docs
If there is a .gitignore file, and .npmignore is missing, .gitignore 's ... The main field is a module ID that is the...
Read more >Modules: Packages | Node.js v19.3.0 Documentation
In a package's package.json file, two fields can define entry points for a package: "main" and "exports" . Both fields apply to ...
Read more >Using Node.js Modules with npm and package.json: A Tutorial
In this cloud tutorial, we will walk you through the detailed steps of using Node.js modules with npm and package.json. Node.js is an...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

vite requires ES module, it use rollup to compile. https://github.com/rollup/rollup/wiki/pkg.module
Although Vite supports compiling CJS modules as ESM
But I found
Nothing in
easy-peasy.esm.jsin the release packagepackage.jsonfor it. https://github.com/ctrlplusb/easy-peasy/blob/70253e5dd8fa2a4d0ededd0cc7cb81cfcc26f3a9/package.json#L6-L9Fixed in the latest release!