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

[edge] Nullish operator available with node 14 only #9321

Closed
mercs600 opened this issue May 21, 2021 · 3 comments · Fixed by #9328
Closed

[edge] Nullish operator available with node 14 only #9321

mercs600 opened this issue May 21, 2021 · 3 comments · Fixed by #9328

Comments

@mercs600
Copy link

mercs600 commented May 21, 2021

I think issue is related with that change:
186df33#diff-cba57dce8689b0b15bac4cd779357605a9c6ce76da7d424eedf8c4eb385b75d8R92

I think it should be transpilled, but is not, because I get an error:

/Users/merc/Projects/OpenSource/mymodule/node_modules/@nuxt/config-edge/dist/config.js:1119
  const dev = configOverrides.dev ?? options.dev ?? configContext.dev;
                                   ^

SyntaxError: Unexpected token '?'

Or should we use node 14 ? But I don't think so it is required at the moment.

Versions

  • nuxt: edge
  • node: 12.20

Reproduction

just run nuxt-edge on node 12.20

@pi0 pi0 changed the title Nullish operator available with node 14 only [edge] Nullish operator available with node 14 only May 21, 2021
danielroe added a commit that referenced this issue May 21, 2021
@rlam3
Copy link

rlam3 commented May 24, 2021

@mercs600 were you able to find a workaround?

@mercs600
Copy link
Author

@rlam3 just downgrade :-)

@pi0
Copy link
Member

pi0 commented May 25, 2021

You can also upgrade to nuxt-edge@2.16.0-27031305.f4a6b384 or later :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants