-
Notifications
You must be signed in to change notification settings - Fork 21
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
Cannot find module 'node:path' #15
Comments
Hi @ShulkMaster and thanks for opening this issue. Unfortunately though, I'm afraid it's not related to this plugin since as you've said:
I think it's more similar to one of these:
Anyway, I've tested your repo and it works for me (also Windows 10, but node If you don't want to upgrade node, I think you can firstly try to rename As described in here, you can use import { defineConfig } from 'vite'
import glsl from 'vite-plugin-glsl';
import { svelte } from '@sveltejs/vite-plugin-svelte'
export default defineConfig({
plugins: [svelte(), glsl.default()]
}); I hope that helps you. Cheers! |
Hi. thank you very much for taking the time and help me. 😊 I really appreciate it. I was triying to keep the same version of node if possible so I try your suggestions about using I update to node 16+ so now it work fine. Here is the comment where I found exactly what was happening In case somebody else has this issue and needs to keep on node 14.x probably they what to stick with node v14.18.0 instead of 16 as I did. Now I can continue in my journey with svelte and WebGL thank a lot. |
Yeah, exactly. I've also noticed (just a few hours ago) that vite |
Hi I'm using this plugin in a newly created project wit svelte and typescript however I'm getting this error:
Checking if the is anybody that can help me? 👀
🔗 Link of my repo with issues in case someone wants to test
The project is basically what you get when running:
and filling for svelte and typescript
Node version v14.17.5 in a Windows 10 machine.
I did see #13 another issue with similar conditions ( svelte and node v14.17)
however the error is different and already try removing the
from the packaje json. Also Package.json
event when not adding glsl to the plugin array still show the same issue.
also try to change the tsconfig.json
from
to
but the same issue appears. Sorry for the long text but I tried to provide as much details as possible 😥
The text was updated successfully, but these errors were encountered: