-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
bug: css source maps not inlining original content #24441
Comments
Thanks for the issue! This issue has been labeled as In the meantime, please read our Winter Holiday Triage Guide for information on how to ensure that your issue is triaged correctly. Thank you! |
Just wanted to comment that i experienced this too but only after upgrading to react-scripts v5. While running v4 that comes with Ionic 6 i didn't get any of those sourcemap errors. I'm guessing that the react-scripts major upgrade probably has some breaking changes that still need incorporating into Ionic React v6. I'm currently sticking with react-scripts v4.x (as well as v5 of the react router) in my projects until those upgrades are officially incorporated, Ionic Team - |
@babycourageous - Thanks for confirmation. I can confirm that there is no issue with react-scripts v4.x. That's the reason why I would assume that this is more a missing feature to support react-scripts v5.x than a bug in the current version. Just wanted to mention it. 😄 |
Thanks for the issue. We do have source maps in Ionic, but it looks like I will do some more digging and reply here when I have more to share. |
Actually, it looks like
Since we do not ship the source files with built versions of Ionic, these referenced files do not exist and |
Thanks for the issue. This has been resolved via #24514, and a fix will be available in an upcoming release of Ionic Framework. |
Thanks @liamdebeasi ! |
Thanks @liamdebeasi for fixing this. All the best! |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Prerequisites
Ionic Framework Version
Current Behavior
I am not really sure, if it's a bug or more a missing peace which should be a nice-to-have.
I am using
@ionic/react
to develop my react app using the react-scripts in version 5.0.0. With v5 they introduced the source-map-loader by default which leads to an error message in building the ionic application because of missing source maps in@ionic/react
.These "errors" are classified as WARNING but it is cluttering the console as you can see in the screenshot above.
Is there a plan to add source maps to the
@ionic/react
package?Currently, I can mitigate this behavior by disabling the source-map-loader at all. But this is not a nice solution. Maybe this would be adapted anyway when updating
@ionic
to support react-scripts@5Expected Behavior
The expected behavior for me is, that there are source maps for @ionic/react and the webpack source-map-loader could load these. Currently, it's not a bug in the sense of something does not work. It's more a feeling that it would be nice to mitigate these warnings by adding the necessary source maps.
Please let me know, if there any plans to add them. I mean the react-scripts in version 5 are quite new and i was not expecting everything working without problems. Don't get me wrong. 😄
Steps to Reproduce
create a new react ionic v6 project with the ionic cli
ionic start myApp blank --type=react
install the latest react-scripts version
yarn add exact [email protected]
ornpm i [email protected]
start the application
yarn start
ornpm start
look at the console to recognize the bunch of warnings regarding parsing error of source maps in
@ionic/react/src/*
Code Reproduction URL
No response
Ionic Info
Ionic:
Ionic CLI : 6.13.1 (C:\Users\kingl\AppData\Roaming\npm\node_modules@ionic\cli)
Ionic Framework : @ionic/react 6.0.1
Utility:
cordova-res : not installed
native-run : 1.5.0
System:
NodeJS : v16.13.1 (C:\Program Files\nodejs\node.exe)
npm : 8.3.0
OS : Windows 10
Additional Information
No response
The text was updated successfully, but these errors were encountered: