I'm trying to connect to local node using polkadot/api library but when I start my project it return this error in the library
1 Answer
The error means you need to use a babel loader that supports private class fields.
We also ran into this issue, and fixed it with proper build config. We have a working build here but we're using TypeScript not JavaScript. Maybe that might help you.
It also looks like you aren't the only one, someone reported something like it earlier this year.
-
3
-
Great! If you don't mind, would you please mark your question as answered so people can easily find what worked? Thanks :) Aug 2, 2022 at 20:09