open-wc / legacy

4 stars 1 forks source link

Module parse failed: Unexpected character '#' #7

Open TopCodeBeast opened 2 years ago

TopCodeBeast commented 2 years ago

Module parse failed: Unexpected character '#' (39:2)
File was processed with these loaders:

I'm using @open-wc/webpack-import-meta-loader 0.4.7

bennypowers commented 2 years ago

Your webpack setup is unable to parse private class fields, a JavaScript language feature. You'll need to adjust webpack to read es2021 or higher

TopCodeBeast commented 2 years ago

Cloud you tell me about this in detail? How can I solve that?

DmitriyMolch commented 2 years ago

Go the same problem