You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The template for package.json defines main as index.js, when there's no index.js file on the root of the project. It's either on src/ or dist/.
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/37967673-package-json-has-wrong-path-for-index-js-at-main?utm_campaign=plugin&utm_content=tracker%2F18782092&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F18782092&utm_medium=issues&utm_source=github).
The text was updated successfully, but these errors were encountered:
In the tools/build.js file, the package.json file gets rewritten to the dist directory, which I think is the point for distributing the package to npm, and the pointer then is correct at that point ... But yeah, wouldn't work if you're just working with it locally. Optionally, could just do what you have done here, and then change the build.js file to do a replace on dist/index back to 'index' ... I think that's what's going on.
The template for
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/37967673-package-json-has-wrong-path-for-index-js-at-main?utm_campaign=plugin&utm_content=tracker%2F18782092&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F18782092&utm_medium=issues&utm_source=github).package.json
definesmain
asindex.js
, when there's noindex.js
file on the root of the project. It's either onsrc/
ordist/
.The text was updated successfully, but these errors were encountered: