Skip to content

Issue debugging beta.18. Sourcemap issue? #2909

Closed
@EricBichara

Description

@EricBichara

OS?

Mac OSX 10.12.1

Versions.

angular-cli: 1.0.0-beta.18
node: 6.8.1
os: darwin x64

Npm: 4.0.0
Chrome: 54.0.2840.71

Repro steps.

new project created with "ng new testproject". Changed only to the following code in app.component.ts

import {Component, OnInit} from '@angular/core';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent implements OnInit {
  ngOnInit(): void {
    this.dosomething();
  }

  title = 'app works!';

  dosomething() {
    this.title = "trying to do something";
    this.title = "trying to do something else";
  }
}

In chrome dev tools, breakpoint doesn't seem to match the scope
screen shot 2016-10-26 at 07 20 26

I've tested in my other projects which i've updated to beta.18, get the same issue.

Also tried reinstalling angular-cli to make sure there where no issues there:
npm uninstall -g angular-cli
npm cache clean
npm install -g angular-cli
ng new testproject

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions