-
Notifications
You must be signed in to change notification settings - Fork 362
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 #304
Comments
The problem seems to stem from |
@loopmode Thank you. you're great. |
So is this a problem with |
I'm also interested on this one. |
@tromey Is there any chance that someone can look into this? |
I think this error is intentional, to catch a case where the library was being called incorrectly. See #265. So, my first thought is that the fix belongs elsewhere. I'm open to arguments to the contrary, but I'm afraid you'd have to walk me through it a bit -- like, why is the caller calling into source-map this way? Which part of the condition is believed to be wrong and why? |
This affects my projects as well. If anyone wants to reproduce it, there seems to be a DUP in webpack/webpack#6131 describing steps to do so. Also, you can reproduce this in my project:
Now, edit
Result:
|
BTW, for a simpler reproduce environment, the official
For future reference, this is reproducible on the current most-recent commit ( |
Is there a valid workaround? |
This is quite something! I am on Webpack 3.10.0, and I started getting this error when I added devtool: DEV ? 'eval-source-map' : 'source-map', to my |
After updating to Webpack 4 and removing babel-minify-webpack-plugin I no longer get this error. |
Problem in babel-minify plugin webpack-contrib/babel-minify-webpack-plugin#68. Issue can be close here. thanks! |
worked for me.
|
@z3by I would like to say you saved my soul |
Note: This is a report coming from webpack-sources#28
Issue
When running the source-map package agains a project with Backbone.Marionette (also reports for Vue and possibly more frameworks) the package generates an error and exits.
Steps to reproduce
I created a small repo here that has this issue. When debugging the issue I pinpointed the culprit to be this line in the Backbone.Marionette library:
And then specifically:
Even removing the rest of that file's content and leaving only this part there will cause source-map to fail with the error above... Removing this line and source-map wil succeed.
Expected behaviour
Create the package as expected, this can be tested by setting
sourceMap: null
to the configuration of the babel-minify-webpack-plugin package. (this will disable the source-map execution)Actual behaviour
The text was updated successfully, but these errors were encountered: