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

Module parse failed: Unexpected character '#' #7

Open
TopCodeBeast opened this issue Jan 26, 2022 · 3 comments
Open

Module parse failed: Unexpected character '#' #7

TopCodeBeast opened this issue Jan 26, 2022 · 3 comments

Comments

@TopCodeBeast
Copy link

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

  • ./node_modules/@open-wc/webpack-import-meta-loader/webpack-import-meta-loader.js
  • You may need an additional loader to handle the result of these loaders.
  • |
  • | export class Keyring {
  • #pairs;

  • | #type;
  • | #ss58;
  • @ ./node_modules/@polkadot/api/node_modules/@polkadot/keyring/bundle.js 3:0-39 10:0-19
  • @ ./node_modules/@polkadot/api/node_modules/@polkadot/keyring/index.js
  • @ ./node_modules/@polkadot/api/bundle.js
  • @ ./node_modules/@polkadot/api/index.js
  • @ ./src/utils/vue-api2/Api.ts
  • @ ./src/utils/vue-api2/index.ts
  • @ ./src/main.ts

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

@bennypowers
Copy link
Member

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
Copy link
Author

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

@DmitriyMolch
Copy link

Go the same problem

@web-padawan web-padawan transferred this issue from open-wc/open-wc Nov 18, 2022
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

3 participants