eslint-plugin-import icon indicating copy to clipboard operation
eslint-plugin-import copied to clipboard

Importing node packages gives "missing extension" error

Open rayax86 opened this issue 10 years ago • 2 comments

import pak from "pak"

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

rayax86 avatar Nov 03 '16 07:11 rayax86

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

benmosher avatar Nov 03 '16 13:11 benmosher

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.

rayax86 avatar Nov 03 '16 13:11 rayax86