-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
Invalid source maps generated #364
Comments
Our primary version is 7.22.1. |
Looks like we are seeing this in some non-TS files as well. |
@wagenet - Is this restricted to component files that are using colocation? |
@rwjblue we are using colocation, but I'm not sure whether it is restricted to those only. I'll keep an eye out. |
@wagenet - I was thinking about this PR where someone mentioned that the way we do colocation breaks things with sourcemaps ember-cli/ember-cli-htmlbars#558. |
@rwjblue it certainly seems plausible. |
The interesting thing for us is that it doesn't happen in every situation. The problem as described in ember-cli-htmlbars sounds like it would always be an issue. |
@rwjblue I just found this issue while setting up breakpoints in VSCode and I believe this is indeed related to template co-location. I've got a bare 3.21 app with 3 components in it
The sourcemaps seems to be wrong for components I can setup a demo repo if necessary 👍 |
Here's the demo repo https://github.com/bartocc/ember-cli-babel-sourcemap-bug |
EditPR 558 does not perfectly correct the issue. To paraphrase @rwjblue in comment ember-cli/ember-cli-htmlbars#558 (comment)
|
We're seeing situations where we get source maps with negative line numbers. I believe it only occurs in some of our TypeScript files. I hope to add more details to this ticket, but wanted to get something started for reference.
The text was updated successfully, but these errors were encountered: