-
Notifications
You must be signed in to change notification settings - Fork 3k
Sourcemaps for angular-ui-router bower components and npm modules are broken #3465
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
Comments
Hmmm...I am now taking a look at the npm packages in the |
And looking a bit deeper into the source maps, I see entries like the following: So, it looks like there are two problems here and the problems are most likely present in both the bower and the npm versions of the package:
I am updating the title of this report accordingly. |
I can submit a PR for this. It is easy enough to ensure that *.ts files are included in npm and bower builds, but I am not sure how rollup generates its sourcemaps. So, I don't know how to fix full paths in sources files. If someone could give me a pointer, I would submit a fix for this. Thanks. |
In order to create correct sourcemaps, all target sources must be available at generation time. Additionally, when the browser loads source maps, they must be available to the browser at the specified path. This fix ensures that *.ts files are shipped in the npm package and bower component. Fixes angular-ui#3465.
In order to create correct sourcemaps, all target sources must be available at generation time. Additionally, when the browser loads source maps, they must be available to the browser at the specified path. This fix ensures that *.ts files are shipped in the npm package and bower component. Fixes angular-ui/ui-router#3465.
I think the PRs I submitted above are enough to fix this issue. |
My version of UI-Router is: 1.0.3
Bug Report
Current Behavior:
Cannot set breakpoints in any ui-router files in Chrome Dev Tools. Cannot step through any ui-router files in Chrome Dev Tools.
Steps to reproduce:
bower_components/angular-ui-router/release/angular-ui-router.js
(or any other file in the ui-router project)There are other problems related to this bug, including the inability to run karma tests that rely on sourcemaps.
Analysis
The sourcemaps appear to be broken. Open up the file
releases/angular-ui-router.js.map
and you can see that it references a bunch of sources, like this:None of these files exist in the bower component.
The solution I would suggest would be to ensure that typescript files are included in the bower component.
The text was updated successfully, but these errors were encountered: