Uncaught Error: Cannot find module 'react-refresh/runtime'
at newRequire (parcel2-react-refresh.87ae4380.js:58)
at newRequire (parcel2-react-refresh.87ae4380.js:42)
at localRequire (parcel2-react-refresh.87ae4380.js:80)
at Object.b4a443c708891a61a6c52b4072510451 (helpers.js:3)
at newRequire (parcel2-react-refresh.87ae4380.js:68)
at localRequire (parcel2-react-refresh.87ae4380.js:80)
at Object.4bbd9410408ee35eee2aa9375b49e901../ChildComponent (parcel2-react-refresh.87ae4380.js:137)
at newRequire (parcel2-react-refresh.87ae4380.js:68)
at parcel2-react-refresh.87ae4380.js:111
at parcel2-react-refresh.87ae4380.js:134
🐛 bug report
Parcel serve fails when target is "electron-renderer" and nodeIntegration is false
The issue is reproducible at https://github.com/moctrash/parcel2-react-refresh, by changing nodeIntegration to false at https://github.com/moctrash/parcel2-react-refresh/blob/a79aeeab145b89f012cf06ad9e7f0f925bc2b0bb/src/main.js#L16
🎛 Configuration (.babelrc, package.json, cli command)
package.json - https://github.com/moctrash/parcel2-react-refresh/blob/master/package.json
🤔 Expected Behavior
electron-renderer should be usable irrespective of nodeIntegration
😯 Current Behavior
unable to use electron-renderer when nodeIntegration is false
💻 Code Sample
https://github.com/moctrash/parcel2-react-refresh
🌍 Your Environment