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 text was updated successfully, but these errors were encountered:
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
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.
refs: https://github.com/yola/yoimportsjs/pull/15#discussion_r151556580
refs: airbnb/javascript#1592
The text was updated successfully, but these errors were encountered: