parcel: Cannot find module 3emQt ('react-refresh/runtime')
π bug report
π Configuration (.babelrc, package.json, cli command)
{
"devDependencies": {
"@parcel/core": "^2.0.0-nightly.325",
"@parcel/runtime-react-refresh": "^2.0.0-nightly.327",
"@parcel/transformer-react-refresh-babel": "^2.0.0-nightly.327",
"@parcel/transformer-react-refresh-wrap": "^2.0.0-nightly.327",
"parcel": "^2.0.0-nightly.325"
},
"targets": {
"browser": {
"context": "browser",
"distDir": "dist",
"engines": {
"browsers": [
"> 2%",
"not dead"
]
}
}
}
}
π€ Expected Behavior
React-refresh works
π― Current Behavior
π¦ Context
At some nightly build, HMR with React fast refresh stopped working.
π» Code Sample
Basic React 16 project
π Your Environment
Software | Version(s) |
---|---|
Parcel | 2.0.0-nightly.325 |
Node | 12.17.0 |
Yarn | 1.22.4 |
Operating System | MacOS 10.15.5 |
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 4
- Comments: 20 (8 by maintainers)
In case you canβt remove the inline scripts, this .parcelrc completely disables React fast refresh:
This is happening for me too in index.html (Parcel 2, 2.0.0-nightly.524)
This gives me an error with React Refresh runtime like OP said. The following βfixesβ it.
@mischnic Can I mark the
script
tag to not be processed by parcel? I really need to inject my hack before any other code loaded.