open-wc / custom-elements-manifest

Custom Elements Manifest is a file format that describes custom elements in your project.
https://custom-elements-manifest.open-wc.org/
226 stars 37 forks source link

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

Closed Lord-Leonard closed 9 months ago

Lord-Leonard commented 9 months ago

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

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

thepassle commented 9 months ago

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

Lord-Leonard commented 9 months ago

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.