-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
plugin-react 1.0.6 triggers sourcemap and deoptimisation error/warning messages in dev server #5438
Comments
Same error here! :( |
Seems to be fixed in this commit: 8556ffe Not released yet though. |
Still getting this same error w/ vite 2.6.13 + @vitejs/plugin-react 1.0.7 on a branch new, default Vite react-js app.
With
|
Both |
Can confirm 1.0.7 still has this issue |
+1 can confirm 1.0.7 has it as well. |
8556ffe was released in 1.1.0-beta.0, but this issue is still present |
deoptimisation message cause by transform files which is larger than 500KB, it should be a way for developers to config rules of exclude babel transform when using |
I met same issues
Not fixed
|
What's the solution? |
please pin to version 1.0.5 and wait with upgrade until issue have been closed |
How do I do this? |
@danieltkach Just change the dependency in your |
FYI: I removed node_module and yarn.lock, reinstalled everything with the pinned version 1.0.5, but still see these Sourcemap warnings. My Vite dependencies are:
|
@rwieruch which version of |
Me too encountering this, Is this is a serious issue? |
This problem has troubled me for a week, and now I finally find the cause! |
I will create a pull request to solve it right away. |
Now i commit the solution. #5563 |
I have done this, deleted |
@templeman15 Please try using 1.0.5 (not .4) as instructed above. |
@memark im using vite-preset-react which only has a v2.0.0 that has a dependency of 1.0.4. Even if I explicitly add 1.0.5 to my package.json file it is still adding 1.0.4 through vite-preset-react. I'll try one more time in the morning. Thanks! |
@templeman15 I see. That's a (common) problem. Here is some discussion about the general case: More specifically here, you might want to ask the author of |
@memark thank you for writing back. I was able to do this through yarn with Selective dependency resolution I just added this to package.json:
And everything works perfect. I'm not sure why we're using |
When I start the project, I still get the source map warnings. Since these are just warnings and the project runs without problems, I kept it like this for now. |
Can confirm that the warnings go away with Thanks @patak-js 🚀 👍🏽 |
@rwieruch The bug has been fixed. Upgrade to 1.0.8 and it should go away. |
Fixes #129 Updating the version of `@vitejs/plugin-react` removes the warnings about missing source files. See vitejs/vite#5438 (comment). I also was seeing these warnings, and updating made them disappear.
Describe the bug
In a Vite+React project using version 1.0.6 of
plugin-react
, runningyarn run vite serve
and then accessing the server triggers a bunch of the following error messages:Reproduction
This will trigger the following messages for me, when doing this in my
Desktop
folder:Forcing use of version 1.0.5 of plugin-react "fixes" the error messages:
System Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: