Timeline for How do I resolve "Cannot find module" error using Node.js?
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 18 at 12:40 | comment | added | Qwert Yuiop |
What do I do if I have Cannot find package 'foo_package' imported from D:\mypath\script.js Did you mean to import "foo_package/index.js"? ? My script is using import , not required .
|
|
Dec 11, 2022 at 12:57 | comment | added | Nam G VU |
Yeah this should be the right way to solve such not found module path-related issues
|
|
Feb 7, 2019 at 15:53 | comment | added | Graham Klyne | I upvoted this as it solved my immediate problem, and led me to this node.js documentation. But I think this is not a blanket answer, as the documentation indicates alternative strategies for locating modules. | |
Feb 6, 2018 at 3:34 | history | answered | Edgar Chavolla | CC BY-SA 3.0 |