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 "require() of ES Module not supported." after adding vite-plugin-glsl to vite.config.ts #26
Comments
Oh, I just realized somebody had the same issue over here: #22 Adding |
@UstymUkhman can this be reopened? For instance I add that into my package.json, and then it causes issues with other vite plugins/node features:
and
Could you not just create an alternative entry point into your plugin for those of us who need to include it in a more standard way? |
Hi @jakewhiteley, I can take a look at the best solution for this issue, but can you tell me first your node and vite versions, please? Also, you can take a look at this issue for possible workarounds at the moment. |
@UstymUkhman I am using Vite |
I will also try on Vite 4.* |
Ok, thanks! Can you also explain why the workarounds described in the issue I've linked above don't work in your case? |
Hey @UstymUkhman - the work around listed above doesn't work in my case because it breaks Tailwind CSS :( Is there another option? |
Hi @rogersanick! Thanks for using this plugin. If you're talking only about |
Hi, thanks for working on this!
Unfortunately, i stumble right at the beginning when trying to make this work.
If I add vite-plugin-glsl to my config like advised ...
... I get this error:
The text was updated successfully, but these errors were encountered: