-
Notifications
You must be signed in to change notification settings - Fork 12
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
Error: original.line and original.column are not numbers
when a mapping entry only contains a single field.
#18
Comments
Related issue in original repo : mozilla#385 |
Stacktrace of the error:
|
Hey guys! We discussed it a bit in private with @ai and @alexander-akait Alexander said that it's a known bug but he didn't have time to solve it because of private business in real life. Andrey suggests skipping broken source maps. I am fine with this suggestion but the real problem is that nobody of us are familiar with source code and how it actually works. I will try to look deeper into the code but can't promise anything. |
Just not that I suggest skipping broken mapping (pos 1 > pos 2), not entire source map 😅 |
Thank you for the update @7rulnik 🤔 Should we then maybe consider moving away from Finding a different package for source maps might be a better long term solution? |
@romainmenke in my opinion — yes |
@romainmenke can you find a good alternative with sync API? |
|
https://github.com/7rulnik/source-map-js/releases/tag/v1.1.0 |
Hi!
I am a contributor to
postcss
and an issue was reported there that I think can only be solved here: postcss/postcss#1914Reproduction :
As far as I can tell it is allowed to have fewer fields in mapping segments.
https://sourcemaps.info/spec.html#h.lmz475t4mvbx
I created the sourcemap by cloning https://github.com/swagger-api/swagger-ui and removing most of the CSS content to create a small output that was easier to read.
Any sourcemap produced by the setup in that project gives an error in
source-map-js
.It is perfectly possible that the issue is with how the sourcemap is generated and not with how it is read.
The text was updated successfully, but these errors were encountered: