-
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
Getting 'Uncaught TypeError: Unable to determine current node version' #55
Comments
Hello and thanks for using this plugin! I'm afraid I need more info to understand the root cause of this issue. Will it be possible to create a minimal reproducible example somewhere or have a link to a public GitHub repository? Thanks! Honestly, looks like this issue is caused within the babel plugin ( If you do import GLSL as external files, try to do that with vite's If this issue persists, I would advise to open it here. I have never tested it with babel plugins, but usually, Anyway, I think I could help more if I had access to some code to check how those plugins are running together. Let me know, thanks! |
Thanks for the quick response. Yeah I tried at first without the plugin, didn't work. Removing the plugin didn't work either. You meant adding Yeah I checked the Here's a reproduced example. Not sure if it meets the definition of 'minimal' but you can ignore most of the code. See DevBox here |
Hi again! Honestly, I haven't figured out what's the issue with I would advice against this babel plugin since it looks pretty old and not compatible with vite out of the box. If I had to use If, on the other hand, you don't need to use Cheers! |
Getting the following in my Vite React project:
I am using
babel-plugin-glsl/macro
for fragment shading. Didn't have an issue before switching from CRA recently.Code sample:
Honestly not sure if this is an issue with the plugin, if I even need the plugin or if this is an issue with vite itself. Any help is appreciated.
The text was updated successfully, but these errors were encountered: