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

command fails with "Unexpected token '.'" #222

Closed
1 of 2 tasks
Lord-Leonard opened this issue Sep 12, 2023 · 2 comments
Closed
1 of 2 tasks

command fails with "Unexpected token '.'" #222

Lord-Leonard opened this issue Sep 12, 2023 · 2 comments

Comments

@Lord-Leonard
Copy link

Description
When I run the command the generate the manifest the programm fails, stating the following:

PS C:\..\slottedComponentsTest> custom-elements-manifest analyze
file:///C:/../slottedComponentsTest/node_modules/@custom-elements-manifest/analyzer/cli.js:44
      const modules = userConfig?.overrideModuleCreation
                                 ^

SyntaxError: Unexpected token '.'

I am a little los here as to why it doesn't work.
Is there any configuration I need to do before using the command inside my root direktory?

Checklist

  • Did you run the analyzer with the --dev flag to get more information?
  • Did you create a minimal reproduction in the playground?

Expected behavior
The command should generate the json file...

@thepassle
Copy link
Member

which version of node are you using? It looks like your version of node doesnt support optional chaining

@Lord-Leonard
Copy link
Author

Lord-Leonard commented Sep 12, 2023

ahhhhhh
sorry, yeah i should have checked that, I am currently stuck at 12.
well what a schame :(

thanks for your time non the less :)

EDIT
Works like a charm using Node 18.

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

2 participants