Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Element type is invalid during HMR (100% chance) #9974

Open
iamyoki opened this issue Oct 6, 2024 · 0 comments
Open

Element type is invalid during HMR (100% chance) #9974

iamyoki opened this issue Oct 6, 2024 · 0 comments

Comments

@iamyoki
Copy link

iamyoki commented Oct 6, 2024

🐛 bug report

THIS MIGHT BE THE MOST FATAL BUG

https://codesandbox.io/p/devbox/tn4zxv

React reports an error every time a third-party module or component is imported on save. It might be something wrong with HMR.

I've tested in several environments: local macos, linux devcontainer, codesandbox, yarn, pnpm, parcel v2.11 2.12. It 100% chance reproducible.

Screenshot

image

image

🎛 Configuration (.babelrc, package.json, cli command)

{
  "your": { "config": "here" }
}

🤔 Expected Behavior

No errors

😯 Current Behavior

Browser reports Element type is invalid error

💁 Possible Solution

🔦 Context

💻 Code Sample

https://codesandbox.io/p/devbox/tn4zxv

🌍 Your Environment

Software Version(s)
Parcel 2.11, 2.12
Node 20
npm/Yarn both
Operating System macos, linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant