question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

webpack 5 build error

See original GitHub issue
  • babel-plugin-macros version: ^3.0.1
  • node version: v15.4.0
  • npm 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:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
conartist6commented, Jul 13, 2021

Closing this since it appears to be inactive. If anyone else encounters this problem bug @mickdelaney 😃

1reaction
mickdelaneycommented, May 21, 2021

Sure. Will do. Probably Monday/Tuesday. Friday Evening time here 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Compile error with Webpack 5 after upgrading but working ...
ERROR in ./node_modules/@babel/runtime/helpers/esm/createSuper.js 1:0-46 Module not found: Error: Can't resolve '.
Read more >
Webpack 5 errors | ImmutableX Documentation
The reason for this error is that create-react-app uses a version of webpack greater than 5, which, unlike versions < 5, does not...
Read more >
Webpack 5 Receiving a Polyfill Error?!?! My JavaScript React ...
Run npm install node-polyfill-webpack-plugin in your terminal`. go to your webpack.config.js and paste this:
Read more >
To v5 from v4 - webpack
Make sure your build has no errors or warnings · Make sure to use mode · Update outdated options · Test webpack 5...
Read more >
Webpack 5 Issues | Documentation - Web3Auth
This issue is caused due to the fact that the web3.js and ethers.js packages have certain dependencies, which are not present within the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found