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

a lot of warnings with webpack #201

Closed
MurhafSousli opened this issue Apr 14, 2016 · 8 comments
Closed

a lot of warnings with webpack #201

MurhafSousli opened this issue Apr 14, 2016 · 8 comments

Comments

@MurhafSousli
Copy link

Hi, I'm using this PrimeNG with angular2-webpack-starter, it's working just fine, but I'm wondering why am I getting 75 warnings? and how can fix them.

Exceptions:

./~/primeng/primeng.js
Cannot find source file 'primeng.ts': Error: Cannot resolve 'file' or 'directory' ./primeng.ts in C:\Users\Murhaf\Documents\GitHub\angula2-drupal\node_modules\primeng
./~/primeng/components/api/lazyload.js
Cannot find source file 'lazyload.ts': Error: Cannot resolve 'file' or 'directory' ./lazyload.ts in C:\Users\Murhaf\Documents\GitHub\angula2-drupal\node_modules\primeng\components\api
./~/primeng/components/api/message.js
Cannot find source file 'message.ts': Error: Cannot resolve 'file' or 'directory' ./message.ts in C:\Users\Murhaf\Documents\GitHub\angula2-drupal\node_modules\primeng\components\api
.
.
.

Thank you.

@cagataycivici
Copy link
Member

It would be better to ask this as angular2-webpack-starter project tracker. We don't ship ts files by the way.

@PatrickJS
Copy link
Contributor

the problem is due to the source maps. I created a branch for primeng
https://github.com/AngularClass/angular2-webpack-starter/tree/primeng

@akozhemiakin
Copy link

This answer on Stackoverflow helps me to fix it: http://stackoverflow.com/a/36727305/1563543

@truongnmt
Copy link

truongnmt commented Jun 14, 2016

how to fix in webpack.dev.js file? Mine run in webpack dev enviroment and I dont know where to fix, here is my webpack.dev.js file: http://pastie.org/10875854 @gdi2290

@PatrickJS
Copy link
Contributor

@DmitryEfimenko
Copy link

this is not really a solution. I'm using angular-cli and getting these warnings. angular-cli does not have a way to manipulate with webpack config directly (or I don't know of a way) so that's not an option for me.
Even if it was, it's still a hacky solution. There needs to be a proper fix for it.

@marcusreese
Copy link

I'm having the same problem as @DmitryEfimenko. Similar thread: #732

@DmitryEfimenko
Copy link

as a matter of fact, our build server treats these warnings as failures and fails the build. So I had to disable running tests during the build meanwhile. Not cool at all!

@cagataycivici any word on this?

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

7 participants