-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Unable to resolve path to module '@sapper/app' #1509
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
Comments
I have a monorepo project with nested |
there needn't be a package.json - just being in node_modules should be enough to resolve. |
Relevant discussion: #677 |
Originally posted by @HenriBeck in #677 (comment) |
That issue is for |
I really don't know. I just set up the template, run the given command to install it and ran eslint. |
We received a similar regression when we start to only support esmodules, in that we removed the |
@maraisr |
node's ESM implementation has shipped, ftr - all; packages should define a "main", and/or an "exports". "module" is irrelevant, and "jsnext:main" is archaic and only supported by some bundlers. |
Hello, I have the same issue, i setup the default sapper template with npx.
How can i solve this ? |
@henri9813 that error means that module isn't installed on disk. install it there, or, configure a module resolver for this plugin that can resolve it to something. |
Thanks, The module is installed. Do you have any recommendation or advise ? Best regards |
I'm not sure how; https://unpkg.com/@sapper/app isn't a package in the registry. |
To reproduce, install a fresh svelte template: https://github.com/sveltejs/sapper-template
If you run eslint with this plugin, you will have:
This is because
@sapper/app
is installed insrc/node_modules
instead of the root one.Does this plugin support nested
node_modules
?The text was updated successfully, but these errors were encountered: