-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Description
Describe the bug
node node_modules/svelte/index.mjs
Error [ERR_UNSUPPORTED_DIR_IMPORT]: Directory import '/home/evilebottnawi/IdeaProjects/copy-webpack-plugin/node_modules/svelte/internal' is not supported resolving ES modules imported from /path/to/node_modules/svelte/index.mjs
at finalizeResolution (internal/modules/esm/resolve.js:267:17)
at moduleResolve (internal/modules/esm/resolve.js:668:10)
at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:758:11)
at Loader.resolve (internal/modules/esm/loader.js:100:40)
at Loader.getModuleJob (internal/modules/esm/loader.js:246:28)
at ModuleWrap.<anonymous> (internal/modules/esm/module_job.js:47:40)
at link (internal/modules/esm/module_job.js:46:36) {
code: 'ERR_UNSUPPORTED_DIR_IMPORT',
url: 'file:///home/evilebottnawi/IdeaProjects/copy-webpack-plugin/node_modules/svelte/internal'
}
Logs
Please include browser console and server logs around the time this bug occurred.
To Reproduce
To help us help you, if you've found a bug please consider the following:
- If you can demonstrate the bug using https://svelte.dev/repl, please do.
- If that's not possible, we recommend creating a small repo that illustrates the problem.
- Reproductions should be small, self-contained, correct examples – http://sscce.org.
Occasionally, this won't be possible, and that's fine – we still appreciate you raising the issue. But please understand that Svelte is run by unpaid volunteers in their free time, and issues that follow these instructions will get fixed faster.
Expected behavior
A clear and concise description of what you expected to happen.
Stacktraces
If you have a stack trace to include, we recommend putting inside a <details>
block for the sake of the thread's readability:
Stack trace
Stack trace goes here...
Information about your Svelte project:
-
Your browser and the version: (e.x. Chrome 52.1, Firefox 48.0, IE 10)
-
Your operating system: (e.x. OS X 10, Ubuntu Linux 19.10, Windows XP, etc)
-
Svelte version (Please check you can reproduce the issue with the latest release!)
-
Whether your project uses Webpack or Rollup
Severity
How severe an issue is this bug to you? Is this annoying, blocking some users, blocking an upgrade or blocking your usage of Svelte entirely?
Note: the more honest and specific you are here the more we will take you seriously.
Additional context
Add any other context about the problem here.