Comments (4)
@AndresDiaz1 I'm closing this since version 0.2.0 should fix your issue. Feel free to open a new one if you notice some other problems. Also, please consider giving a ⭐ to this project if you've found it useful, thanks!
from vite-plugin-glsl.
Thanks for the quick response!
Yes, you're right it was the node version. I was using version 14.8.0 once I upgraded it above 16 it worked.
Also using version 14.8.0 of node and the new version 0.2.0 works perfectly.
Thanks for your help 👍
from vite-plugin-glsl.
Hi @AndresDiaz1 , thanks for reporting this issue. I haven't face the same error, but my guess this is happening due to your Node.js version. Array.at
was introduced in v16.6.0
so most likely this issue is because you're running a node environment prior to that. Anyway, I will update that line to use a more classic approach with .length - 1
in order to support older node environments. For now you can use v0.1.2
to avoid this hack.
from vite-plugin-glsl.
Nice! I'm glad to help and thanks for the star. 🙂
from vite-plugin-glsl.
Related Issues (20)
- Import other NPM packages i.e. glsl-noise HOT 3
- Watcher crashes when using the plugin with Astro HOT 7
- Typscript Support for Importing Shaders HOT 8
- Watch, hot reload, server restart on 1.1.0 HOT 8
- Failed to resolve entry for package "vite-plugin-glsl" in vanilla TypeScript project. HOT 3
- [Question] Unexpected identifier HOT 7
- can't 'go to definition' to source file HOT 8
- Unable to import glsl file properly HOT 5
- Error while importing shader HOT 1
- Seeking Help: Manual Refresh Required for GLSL Code Updates in Vite/React-Three-Fiber HOT 2
- 'include' : invalid directive name HOT 13
- Tips for making this work with GLSL Lint HOT 3
- how can i remove comments like // or /* */ HOT 3
- Add Bun Support HOT 2
- Could it support custom decompression ? HOT 5
- Compress erros on Three with chunks and imports HOT 3
- I facing an issue while using a package which uses .glsl files (sheryjs) HOT 3
- Does it support the react WGSL apps build with vite? HOT 1
- compact goes wrong with this code HOT 4
- HMR in vuejs working weirdly HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vite-plugin-glsl.