Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: Unexpected token '??=' #449

Open
NullVoxPopuli opened this issue May 5, 2023 · 0 comments
Open

SyntaxError: Unexpected token '??=' #449

NullVoxPopuli opened this issue May 5, 2023 · 0 comments

Comments

@NullVoxPopuli
Copy link

NullVoxPopuli commented May 5, 2023

Expected Behavior

This command works

../../node_modules/.pnpm/rollup@3.21.0/node_modules/rollup/dist/bin/rollup -c

This doesn't

clinic flame -- ../../node_modules/.pnpm/rollup@3.21.0/node_modules/rollup/dist/bin/rollup -c

I'm using this silly path because just running rollup -c uses a bash script, which is incompatible with clinic / node profilling.

Current Behavior

Error received:

[!] SyntaxError: Unexpected token '??='
    at Loader.moduleStrategy (internal/modules/esm/translators.js:149:18)


[    ] Analysing dataTarget subprocess error, code: 1
[==  ] Analysing data^C

Steps to Reproduce (for bugs)

  1. find a rollup project with a working build
  2. invoke the build with clinic
  3. observe error

Environment

❯ clinic -v
v12.1.0

❯ clinic flame -v
v12.1.1 (0x v5.5.0)

❯ node -v
v18.16.0

❯ npm -v
9.5.1
  • Operating system and version: Mac OS 13.0 (Ventura)
  • Browser irrelevant -- not for enough in profiling for that to matter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant