Primeng: a lot of warnings with webpack

Created on 14 Apr 2016  路  8Comments  路  Source: primefaces/primeng

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.

Most helpful comment

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

All 8 comments

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

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

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

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

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.

I'm having the same problem as @DmitryEfimenko. Similar thread: https://github.com/primefaces/primeng/issues/732

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?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

watalberto picture watalberto  路  3Comments

Helayxa picture Helayxa  路  3Comments

philly-vanilly picture philly-vanilly  路  3Comments

pchristou picture pchristou  路  3Comments

jisqaqov picture jisqaqov  路  3Comments