question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

module entry in package.json wrong

See original GitHub issue

The 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:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
davidkpianocommented, Jun 16, 2020

Published as 0.6.1

1reaction
jonbjkcommented, Jun 15, 2020
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found