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

Warnings when compiled #96

Closed
kodeine opened this issue Oct 11, 2016 · 11 comments
Closed

Warnings when compiled #96

kodeine opened this issue Oct 11, 2016 · 11 comments

Comments

@kodeine
Copy link

kodeine commented Oct 11, 2016

I am getting this error when i updated to beta4.
its for all the pipe js files.

WARNING in ./~/angular2-moment/DateFormatPipe.js
Cannot find source file 'DateFormatPipe.ts': Error: Can't resolve './DateFormatPipe.ts' in '/Projects/SL/another/node_modules/angular2-moment'
 @ ./~/angular2-moment/index.js 6:23-50
 @ ./src/app/app.imports.ts
 @ ./src/app/app.module.ts
 @ ./src/main.browser.ts
 @ multi main
@urish
Copy link
Owner

urish commented Oct 11, 2016

Sounds like a configuration issue - if you are using webpack, can you please verify that the extensions option inside the resolve section contains '.js'?

e.g.

resolve: {
    extensions: ['.js', '.ts']
},

@mzellho
Copy link

mzellho commented Oct 12, 2016

I can confirm that the issue is there even if extensions is set to ['.js', '.ts'].

@n-sviridenko
Copy link

I have the same:

WARNING in ./~/angular2-moment/index.js
Cannot find source file 'index.ts': Error: Cannot resolve 'file' or 'directory' ./index.ts in ./~/angular2-moment

WARNING in ./~/angular2-moment/CalendarPipe.js
Cannot find source file 'CalendarPipe.ts': Error: Cannot resolve 'file' or 'directory' ./CalendarPipe.ts in ./~/angular2-moment

WARNING in ./~/angular2-moment/DurationPipe.js
Cannot find source file 'DurationPipe.ts': Error: Cannot resolve 'file' or 'directory' ./~/
angular2-moment

WARNING in ./~/angular2-moment/module.js
Cannot find source file 'module.ts': Error: Cannot resolve 'file' or 'directory' ./module.ts in ./~/angular2-moment

WARNING in ./~/angular2-moment/DateFormatPipe.js
Cannot find source file 'DateFormatPipe.ts': Error: Cannot resolve 'file' or 'directory' ./DateFormatPipe.ts in ./~/angular2-moment

WARNING in ./~/angular2-moment/TimeAgoPipe.js
Cannot find source file 'TimeAgoPipe.ts': Error: Cannot resolve 'file' or 'directory' ./TimeAgoPipe.ts in ./~/angular2-moment

WARNING in ./~/angular2-moment/FromUnixPipe.js
Cannot find source file 'FromUnixPipe.ts': Error: Cannot resolve 'file' or 'directory' ./FromUnixPipe.ts in ./~/angular2-moment

WARNING in ./~/angular2-moment/DifferencePipe.js
Cannot find source file 'DifferencePipe.ts': Error: Cannot resolve 'file' or 'directory' ./DifferencePipe.ts in ./~/angular2-moment

My extensions option contains ['', '.ts', '.js', '.json']

@urish
Copy link
Owner

urish commented Oct 16, 2016

Seems related:

PatrickJS/PatrickJS-starter#541

@n-sviridenko
Copy link

@urish thanks! it's really this case

@kodeine
Copy link
Author

kodeine commented Oct 21, 2016

@urish
i am not using AngularClass/angular2-webpack-starter#541 but still i get the warnings, i'm using this starter

@tarlepp
Copy link

tarlepp commented Oct 22, 2016

This same occurs also with angular-cli any solutions to solve?

@urish
Copy link
Owner

urish commented Oct 22, 2016

I hope to release another version soon which should fix this issue

@urish urish closed this as completed in 7ab0a5a Oct 24, 2016
@urish
Copy link
Owner

urish commented Oct 24, 2016

Can you please confirm whether the latest release (1.0.0-beta.6) fixes this for you? thanks!

@jumper423
Copy link

Thank you.
Confirm working without any warnings.

@tarlepp
Copy link

tarlepp commented Oct 26, 2016

Yeah, I can also confirm that 1.0.0-beta.6 works with angular-cli without warnings - 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

6 participants