pmndrs / react-three-next

React Three Fiber, Threejs, Nextjs starter
https://react-three-next.vercel.app/
MIT License
2.52k stars 342 forks source link

Module parse failed: Unexpected token (1:10) for .frag and .vert files #92

Closed yanisneverlies closed 2 years ago

yanisneverlies commented 2 years ago

I tried to run a few times this boilerplate, but encountered the same issue:

image

Looks like there's a problem with the glslify-loader, but I can't tell what exactly breaks

image

yanisneverlies commented 2 years ago

I'm closing the issue. The problem was with the old version of node js (apparently, the version I used was 14.13, which is quite old version). Steps that I did:

  1. Updated nodejs
  2. Installed yarn
  3. Followed installation steps from scratch
mehrdad-shokri commented 2 years ago

@westfalensgod what version are you using now?

yanisneverlies commented 2 years ago

@mehrdad-shokri 16.17, I decided to take the stable version for now