module entry in package.json wrong
See original GitHub issueThe module entry in package.json is: https://github.com/davidkpiano/useEffectReducer/blob/master/package.json#L56
"module": "dist/useEffectReducer.esm.js",
However the built file is:
dist/use-effect-reducer.esm.js
thereby breaking usage in rollup
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
npm error - verify that the package.json has a valid "main" entry
So Im not a 100% sure what exactly the error is, there is a main entry in the package.json file and the cctx...
Read more >bug: ES6 modules loading wrong file with package.json "main ...
Node --experimental-modules is loading the wrong file when specified in package.json "main" for the entry file of the module.
Read more >Main property in package.json defines package entry point
The entry point is the file, whose module.exports object is returned as the return value of a require() -call. First, Node looks for...
Read more >package.json - npm Docs
The main field is a module ID that is the primary entry point to your program. ... specifying both a bin path and...
Read more >How to fix 'Module not found: Can't resolve 'http' in ... - YouTube
Basically, just change 'react-scripts' to 4.0.2 in your package. json and run ` npm install` again :D Follow me on Twitter: ......
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 FreeTop 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
Top GitHub Comments
Published as 0.6.1
Here is a PR https://github.com/davidkpiano/useEffectReducer/pull/14