It sounds like you’re missing the Babel plugin that handles static (class) properties. For example, in my webpack.config.js, I have the following settings for *.js rules:
{
test: /\.js/,
use: {
loader: 'babel-loader',
options: {
presets: [
'@babel/preset-env'
],
plugins: [
'@babel/plugin-proposal-class-properties'
]
}
}
},
and I made sure I did yarn add @babel/plugin-proposal-class-properties
so that’s part of the package.json
manifest.
Let me know how that goes!