Skip to content
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

vite-plugin-glsl requires node v16+ #5

Open
nprasovict opened this issue May 9, 2024 · 0 comments
Open

vite-plugin-glsl requires node v16+ #5

nprasovict opened this issue May 9, 2024 · 0 comments

Comments

@nprasovict
Copy link

Running npm run build if NodeJS is not v16 or above will give this error:

> tsc && vite build

failed to load config from /tmp/my-threejs-project/vite.config.js
error during build:
SyntaxError: missing ) after argument list
    at Loader.moduleStrategy (internal/modules/esm/translators.js:149:18)

I've re-tried from scratch, this time using npm --engine-strict install, but npm still installs everything without complaining about NodeJS version.

The issue is with vite-plugin-glsl which requires NodeJS v16.15.1 or above: https://github.com/UstymUkhman/vite-plugin-glsl/blob/6b16a6c06c8319ba244595aa233731b4dbcf20ef/package.json#L67

Maybe add a note in the README.md in "Prerequisites" section that says something like "NodeJS v18+ is required to build the project"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant