-
Notifications
You must be signed in to change notification settings - Fork 49.9k
Closed
Labels
Status: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bug
Description
Steps To Reproduce
- Try to require react-refresh package directly ('react-refresh', not anything like 'react-refresh/runtime').
The current behavior
Error: Cannot find module '/node_modules/react-refresh/index.js'. Please verify that the package.json has a valid "main" entry
Indeed, main field in react-refresh points to index.js, which is simply not there. There's babel.js and runtime.js
The expected behavior
- index.js file to be created, printing an error that you should require
…/babelor…/runtimeinstead. - OR main entry file changed to babel.js or runtime.js
Metadata
Metadata
Assignees
Labels
Status: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bug