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

Webpack loading, not finding files. #36

Closed
Spittal opened this issue Feb 16, 2016 · 6 comments
Closed

Webpack loading, not finding files. #36

Spittal opened this issue Feb 16, 2016 · 6 comments

Comments

@Spittal
Copy link

Spittal commented Feb 16, 2016

Hey, I'm using webpack to load my TS files and it spits out some errors when I load this package.
screen shot 2016-02-16 at 2 46 25 pm

I'm including the file like this

import {TranslateService} from 'ng2-translate';

and my webpack TS-loader configuration looks a little something like this

{ test: /\.ts$/, loader: 'ts-loader', exclude: [ /\.(spec|e2e|async)\.ts$/ ] },

I'm relatively new to typescript, and I imagine this has something to do with typings? Do I need to do anything special typings wise for this package?

@ocombe
Copy link
Member

ocombe commented Feb 16, 2016

Hmm what version of ng2 translate & angular 2 are you using?

@Spittal
Copy link
Author

Spittal commented Feb 16, 2016

"angular2": "2.0.0-beta.3"
"ng2-translate": "^1.7.0"

@ocombe
Copy link
Member

ocombe commented Feb 16, 2016

Can you make me a repo with the problem ? I tried with my webpack starter and it worked without any warning.
I think that it has to do with sourcemaps.

@Spittal
Copy link
Author

Spittal commented Feb 16, 2016

Take a look here

https://github.com/Spittal/ng2-translate-test

This is the exact code I'm working with ATM

it was forked from https://github.com/AngularClass/angular2-webpack-starter

@ocombe ocombe closed this as completed in c3080d5 Feb 16, 2016
@ocombe
Copy link
Member

ocombe commented Feb 16, 2016

Stupid me, I changed the sourcemaps to inline for forgot to include the source code...
Anyway, try 1.7.2, it should fix the problem for you :)

@Spittal
Copy link
Author

Spittal commented Feb 16, 2016

Thanks!

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