Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing node packages gives "missing extension" error #650

Closed
rayax86 opened this issue Nov 3, 2016 · 2 comments
Closed

Importing node packages gives "missing extension" error #650

rayax86 opened this issue Nov 3, 2016 · 2 comments

Comments

@rayax86
Copy link

rayax86 commented Nov 3, 2016

import pak from "pak"

Maybe not a bug, but generally how do you solve this without turning the extensions rule off?

@benmosher
Copy link
Member

closing as dupe of #414, let me know if I am misunderstanding

@rayax86
Copy link
Author

rayax86 commented Nov 3, 2016

Nope, the issue arises if an npm package named "pak" is imported as import pak from "pak", with its entry point called "pak.js". It is different from having "pak/index.js" as its entry point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants