pmndrs / gltfjsx

šŸŽ® Turns GLTFs into JSX components
https://gltf.pmnd.rs
MIT License
4.41k stars 290 forks source link

Unexpected token '&&=' in node_modules/gltfjsx #215

Open Lavosbit opened 11 months ago

Lavosbit commented 11 months ago
file:///../Gumroad/Bananas/bananas/node_modules/meow/source/index.js:34
        description &&= help ? `\n  ${description}\n` : `\n${description}`;
                    ^^^

SyntaxError: Unexpected token '&&='

Error when attempting to use npx gltfjsx [modelName].glb --transform

willkrakow commented 11 months ago

This is most likely an issue with your version of Node. Logical assignment operators were introduced in Node v15.0.0.

Run node -v to check which version you're on.

Lavosbit commented 11 months ago

@willkrakow I haven't used gltfjsx since like December and remembered that I had to switch my node version back a few versions in order for it to work back then. Not sure if that's resolved or not but I tried it in two versionsā€”the latest and 14.

nibnualdi commented 10 months ago

i had the same issue. As @willkrakow said, i used node v14.17.6, i fixed it just by updating the node version to 20.5.1 (the latest at this time).