gltfjsx
gltfjsx copied to clipboard
Unexpected token '&&=' in node_modules/gltfjsx
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
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.
@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.
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).