webpack 5 build error
See original GitHub issuebabel-plugin-macros
version: ^3.0.1node
version: v15.4.0npm
version: 7.0.15
Relevant code or config
What you did: I’m trying to setup react, typescript with relay using webpack 5. I’ve done this successfully with CRA, but wanted a more customizable config, and also am assessing if i can move to webpack 5. All goes well until i add relay, which relies on babel-plugin-macros.
NOTE: I’ve attempted to polyfill node for webpack 5.
https://github.com/mickdelaney/react-webpack-5-ts-relay/blob/master/webpack.config.js#L15
What happened:
the full build error is here: https://gist.github.com/mickdelaney/65cedc2e131a1e45edec18a4fb39c68d
Reproduction repository:
https://github.com/mickdelaney/react-webpack-5-ts-relay
Problem description:
Suggested solution:
I’m not an expert on these tools, so am considering just waiting a few months assuming things will stabilize with webpack 5 etc.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top GitHub Comments
Closing this since it appears to be inactive. If anyone else encounters this problem bug @mickdelaney 😃
Sure. Will do. Probably Monday/Tuesday. Friday Evening time here 😉