-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Could not load source file "0" in source map of "../node_modules/jsoneditor/dist/jsoneditor.min.js" #1208
Comments
How can I reproduce this issue? |
how to reproduce issue:
I use parcel.js to bundle. install parcel.js by:
create a simple html, js file.
Then, run:
Then you will see warning
This is my package.json, you could have yours,
|
I managed to reproduce the issue by following your steps and creating: file issue_1208.html: <html>
<head>
<script src="issue_1208.js"></script>
</head>
<body>
</body>
</html> and file issue_1208.js // jsoneditor
import 'jsoneditor/dist/jsoneditor.css'; // do not forget CSS !
import JSONEditor from "jsoneditor"; Anyone able to look into why Parcel outputs this warning about the source map? |
It's not just parcel but webpack as well. I am trying to debug an issue and plugging in
|
Thanks for the update @Nikki1993 , that means this is probably not a Parcel specific issue but something generic being wrong with the source map of jsoneditor. |
Same issue here, and I am using webpack, not parcel. Error is:
|
Looks like all that has to be done is to change the See my fix |
hm, yeah not using the minified version (with source map) but the non-minified version will indeed work around the issue, though it doesn't really solve the issue of course. |
Any updates with this issue, I still have it in the console, with create-react-app project, React v18 |
No news. Help solving this would be very welcome. |
I was able to prevent the warning by importing from index in my typescript project!
|
🤔 that is interesting.
EDIT: ah, of course: the |
This is fixed now in |
I got this warning when build, using "jsoneditor": "^9.1.6",
full code:
The text was updated successfully, but these errors were encountered: