PlasmoHQ / plasmo

🧩 The Browser Extension Framework
https://www.plasmo.com
MIT License
8.88k stars 316 forks source link

[BUG] Unexpected Token when I create plasmo #930

Open cif2cif opened 3 months ago

cif2cif commented 3 months ago

What happened?

When I execute 'pnpm create plasmo' y get this error:

SyntaxError: Unexpected token '?' at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)

Any idea regarding how to fix it?

Thank you

Version

Latest

What OS are you seeing the problem on?

No response

What browsers are you seeing the problem on?

No response

Relevant log output

pnpm create plasmo --no-hoist
.../share/pnpm/store/v3/tmp/dlx-162332   |   +2 +
.../share/pnpm/store/v3/tmp/dlx-162332   | Progress: resolved 2, reused 2, downloaded 0, added 2, done
file:///home/user/.local/share/pnpm/store/v3/tmp/dlx-162332/node_modules/.pnpm/create-plasmo@0.85.2/node_modules/create-plasmo/dist/index.js:23
  `):"",this.name="UnsubscriptionError",this.errors=r}})});var mr=l(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.arrRemove=void 0;function YY(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}Al.arrRemove=YY});var dt=l(st=>{"use strict";var 

....
SyntaxError: Unexpected token '?'
    at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)

(OPTIONAL) Contribution

Code of Conduct