You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Webpack5 with ESbuild-loader for my React project's build pipeline.
For connecting my components to Redux store I use @connect decorator instead of using the HOC approach.
When I try to start my dev server I get this error which is related to the line decorator is defined:
ERROR in ./project/MyComponent.jsx
Module build failed (from ./node_modules/esbuild-loader/dist/index.js):
Error: Transform failed with 1 error:
MyComponent.js:63:0: ERROR: Unexpected "@"
Bug description
I'm using Webpack5 with ESbuild-loader for my React project's build pipeline.
For connecting my components to Redux store I use
@connect
decorator instead of using the HOC approach.When I try to start my dev server I get this error which is related to the line decorator is defined:
Reproduction
Example:
MyComponent.jsx
And here's my Webpack config rule for
js/jsx
files:Node.js package manager
npm
Environment
The text was updated successfully, but these errors were encountered: