The error
/node_modules/myLibrary/lib/index.js 97:8
Module parse failed: Unexpected token (97:8)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| class SomeClass {
|
> property;
| property2;
| property3;
I can't figure out what's wrong. If I use object with function properties it's work fine. If I use a class, I can't use it on node environment but not on React.