-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Error: No loader is configured for ".node" files: node_modules/fsevents/fsevents.node #8140
Comments
I have the same issue. I am running on the latest Svelte versions as of Jan 2, 2023.
|
Same here. This is not an issue of the adapter though, it is a compatibility issue on the library side (unfortunately a very common thing). |
Encountered the same problem, now what is the solution |
Same problem here. |
Same here, happened all of a sudden and can't seem to get rid of it. (tried to remove node_modules and .svelte-kit) EDIT: |
I had the exact same issue! |
@xmlking Please update the repo with a proper minimal reproduction as instructed
if you're still running into this otherwise close the issue. |
Closing as no minimal reproduction was provided. Feel free to open a new issue with one. |
Based on this stack overflow: I deleted node_modules, and then did a |
I'd say that this will work only in case that confliction package is one of
optional dependencies.
…On Thu, Mar 9, 2023, 2:09 AM RobKohr ***@***.***> wrote:
Based on this stack overflow:
https://stackoverflow.com/questions/46929196/how-to-solve-npm-install-throwing-fsevents-warning-on-non-mac-os
I deleted node_modules, and then did a npm install --no-optional and it
made the issue go away (just deleting and doing npm install had no effect)
—
Reply to this email directly, view it on GitHub
<#8140 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABLZOEWP5MORMXAQF2IZKTW3EUTRANCNFSM6AAAAAAS55MJYY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Not sure if this relevant anymore but I noticed I got the error when I had accidentally imported something that you're not supposed to load / run in the client side. for me it was errors from playwright/test package.. 😅 Removed the unnecessary import and everything is fine. |
A number of people have reported that this occurs when vscode auto-imports a package which pulls in fsevents. I think it may be the Svelte extension. In my case, vscode helpfully pulled in 'send' from vite. |
the only way for me was transpilation of fsevents with nuxt, ts in nuxt.config.ts: export default { |
thank you! I wasted ages on this and found a VS Code auto import |
I am also having the same issue and none of the solutions are working for me. |
For me, it VSCode auto-imported |
For me removing |
ok, it seems to me this problem occurs if you type somehting fast and then not delete it xD happened to me, i wanted to write import { splitVendorChunkPlugin } from 'vite'; |
I have the same problem, can anyone tell me in which file did vs code auto import
|
Annoying auto-imports seem to happen all the time. Not sure how to improve that. |
Found this to turn off auto imports |
I have this same issue just from updating Nuxt from 3.7.0 to 3.9.3 |
I checked if I had an accidental import from "vite" and didn't see any. I did try disabling all of my
|
Just got a similar error with Svelte 5.0.0-next.133, tried upgrading to Svelte 5.0.0-next.135, also SvelteKit 2.5.8. I've upgraded a lot of packages in the last day and dependabot has been fully broken on pnpm v9 ever since it was released months ago, so I wasn't able to upgrade packages "properly". Difference is my errors were:
and
Being that neither is a direct dependency of the project, I looked to Adding this to my
Thanks for all the clues above, everyone! |
Update: Thanks to #12242, I was able to remove the code again after I updated to SvelteKit 2.5.10. 🥳 For me, this started happening in SvelteKit 2.5.8, I'm pretty sure due to the new automatic As others suggested, I was also able to fix it with: optimizeDeps: { exclude: ['fsevents'] }, |
@pboling Thank you, this worked for me
My original issue |
I am experiencing this issue too. In my case, I had added
as indicated by the error message I got. |
Update: Thanks to #12242, I was able to remove the code again after I updated to SvelteKit 2.5.10. 🥳 |
I can confirm what @danieldiekmeier said, I was also able to remove my optimization after an upgrade to 2.5.10. |
Same, the "fix" is no longer needed! |
same here, can confirm issue is fixed in sveltekit 2.5.10 |
I was implementing push notification and started having this issue Solution from following link worked. |
Describe the bug
just updated to latest svelte version, I am seeing this error occasionally. it is not happening consistently :(
✘ [ERROR] No loader is configured for ".node" files: node_modules/fsevents/fsevents.node
6:36:27 PM [vite-plugin-svelte] prebundle libraries done.
package files time avg
svelte-starter-kit 482 2.74s 5.7ms
6:36:27 PM [vite] error while updating dependencies:
Error: Build failed with 1 error:
node_modules/fsevents/fsevents.js:13:23: ERROR: No loader is configured for ".node" files: node_modules/fsevents/fsevents.node
at failureErrorWithLog (/Users/schinth/Developer/Work/SPA/svelte-starter-kit/node_modules/esbuild/lib/main.js:1591:15)
at /Users/schinth/Developer/Work/SPA/svelte-starter-kit/node_modules/esbuild/lib/main.js:1047:28
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
hooks.server.ts, HandleFetch:
errors null
Reproduction
Repo: https://github.com/xmlking/svelte-starter-kit.git
Logs
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: