react-refresh-webpack-plugin icon indicating copy to clipboard operation
react-refresh-webpack-plugin copied to clipboard

exports is not defined

Open BlackEyeByLee opened this issue 2 years ago • 3 comments

env: "react": "^18.2.0", "webpack-cli": "^4.10.0", "webpack-dev-server": "^4.11.1", "webpack": "^5.74.0",

image I got the babel set up wrong?

BlackEyeByLee avatar Oct 22 '22 07:10 BlackEyeByLee

Can you provide a reproducible example or explain more about your setup? It would be hard to offer any help just by looking at this. Maybe you are using pure ESM but did not configure it properly?

pmmmwh avatar Oct 23 '22 07:10 pmmmwh

i have the same bump

mateBe95 avatar Jan 07 '24 09:01 mateBe95

This is an issue in commonjs modules which are transformed by babel with the code exports.default = void 0; where exports is initially set to void 0 but later on in the code is assigned to an actual value.

mgfalzon avatar Feb 12 '24 21:02 mgfalzon