gltfjsx icon indicating copy to clipboard operation
gltfjsx copied to clipboard

Unexpected token '&&=' in node_modules/gltfjsx

Open Lavosbit opened this issue 1 year ago • 3 comments

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

Lavosbit avatar Jul 18 '23 23:07 Lavosbit

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 avatar Jul 20 '23 00:07 willkrakow

@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.

Lavosbit avatar Aug 01 '23 07:08 Lavosbit

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).

nibnualdi avatar Aug 16 '23 09:08 nibnualdi