Skip to content
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

When running ng test in an ng-cli project, it fails to show sourcemaps for the debug window #6892

Closed
williamBurgeson opened this issue Jul 5, 2017 · 3 comments

Comments

@williamBurgeson
Copy link

Bug Report or Feature Request (mark with an x)

- [ x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

Occurs from 1.1.2 onwards (1.0.1 and 1.1.1 seem OK, didn't test intervening versions)

Repro steps.

Simply create a new ng cli project (ng new my-project), go into package.json and change the version of @angular/cli to 1.1.2. Note I am using yarn. To ensure "isolation", I have deleted node_modules and yarn.lock and then run yarn install each time.
I run ng test on the command line, then click the debug button in the browser and the open the dev tools (chrome on windows). In sources, I expect to see webpack:// with the source files but from 1.1.2 this item is absent.

The log given by the failure.

n/a

Desired functionality.

I want to see the sourcemapped original ts files in the browser dev tools (Chrome on Windows). Obviously if I am building an angular app using TDD it makes it very difficult when I can't debug into my application code when I need to do so.

Mention any other details that might be useful.

I noticed this on a project I am working on, but created a new ng cli blank project to compare to, which worked fine out of the box. I isolated the problem down to version 1.1.2 onwards.
Obviously this might be down to issues with webpack or other dependencies, however from my point of view as a "user" the broken version is 1.1.2+, and until this is resolved I am unable to upgrade past 1.1.1

@devoto13
Copy link
Contributor

devoto13 commented Jul 5, 2017

Looks like duplicate of #6737, #6785 and #6640. Should be fixed by #6862.

@Brocco
Copy link
Contributor

Brocco commented Jul 17, 2017

Closing as a duplicate. Thanks @devoto13 for finding the other related issues.

@Brocco Brocco closed this as completed Jul 17, 2017
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants