Skip to content

Cannot find sourcefile? #376

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

Closed
asadsahi opened this issue Jul 21, 2016 · 3 comments
Closed

Cannot find sourcefile? #376

asadsahi opened this issue Jul 21, 2016 · 3 comments

Comments

@asadsahi
Copy link

asadsahi commented Jul 21, 2016

I need a saviour who can help fixing these warnings in console.

image

I am using angular2-webpack starter and excluded the angularfire2 from sourcemap loader, but no success. Here is preLoader config:

 {
        test: /\.js$/,
        loader: 'source-map-loader',
        exclude: [
          // these packages have problems with their sourcemaps
          helpers.root('node_modules/rxjs'),
          helpers.root('node_modules/@angular'),
          helpers.root('node_modules/@ngrx'),
          helpers.root('node_modules/firebase'),
          helpers.root('node_modules/angularfire2')
        ]
      }
@orangesoup
Copy link

It's happening with angular-cli webpack branch as well.

@asadsahi
Copy link
Author

Got it resolved by upgrading to typescript 2 beta (npm install typescript@next) and removing preLoader source-map-load section.

@orangesoup
Copy link

Alright, your problem is solved by that, but unfortunately the webpack branch of the angular cli is not that configurable AFAIK. I know that's still in progress but would you mind taking a look @davideast?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants