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

"Missing file extension" error occurs when importing library by name #6

Open
RusinovAnton opened this issue Nov 18, 2017 · 2 comments

Comments

@RusinovAnton
Copy link
Contributor

refs: https://github.com/yola/yoimportsjs/pull/15#discussion_r151556580
refs: airbnb/javascript#1592

@RusinovAnton RusinovAnton changed the title Missing file extension error when importing library by name "Missing file extension" error occurs when importing library by name Nov 18, 2017
@RusinovAnton
Copy link
Contributor Author

airbnb/javascript#1633 (comment)

ljharb: the only time you should use extensions in require/import paths is if you're importing JSON files, or if you've made any nonstandard changes to allow requires of alternate extensions, like .css or .svg or .jpg. With .js, .jsx, or .mjs files, you should always omit the extension.

@RusinovAnton
Copy link
Contributor Author

Missing file extension for "prop-types" (yola/import/extensions)
Unable to resolve path to module 'prop-types'. (yola/import/no-unresolved)

https://github.com/yola/sitebuilderui/pull/4017#discussion_r166089808

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

No branches or pull requests

1 participant