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: Getting warning from one npm package when running ng serve #1482

Closed
5amfung opened this issue Jul 28, 2016 · 3 comments
Closed

Webpack: Getting warning from one npm package when running ng serve #1482

5amfung opened this issue Jul 28, 2016 · 3 comments

Comments

@5amfung
Copy link

5amfung commented Jul 28, 2016

Please provide us with the following information:

  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)

Mac El Capitan

  1. Versions. Please run ng --version. If there's nothing outputted, please run
    in a Terminal: node --version and paste the result here:

ng --version
(node:34059) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
angular-cli: local (v1.0.0-beta.10, branch: master)
node: 6.2.0
os: darwin x64

  1. Repro steps. Was this an app that wasn't created using the CLI? What change did you
    do on your code? etc.

I followed https://github.com/filipesilva/angular-cli/blob/061fc54cb67681c372cc66351c6f9221db9edf51/WEBPACK_UPDATE.md to migrate my project to use webpack. When I run ng serve, everything seems to be ok until at the end. I'm not sure if this is an issue of the npm package (@vaadin/angular2-polymer) I'm using or if this is something I need to set up in the webpack config to load npm package properly. Please advise.

  1. The log given by the failure. Normally this include a stack trace and some
    more information.

I'm getting this at the end of ng serve:

WARNING in ./~/@vaadin/angular2-polymer/index.js
Cannot find source file 'index.ts': Error: Can't resolve './index.ts' in '/Users/bbpan/src/infocery-partner-ui/node_modules/@vaadin/angular2-polymer'
 @ ./src/app/app.component.ts 12:0-58
 @ ./src/app/index.ts
 @ ./src/main.ts
 @ multi main

WARNING in ./~/@vaadin/angular2-polymer/src/polymer-element.js
Cannot find source file 'polymer-element.ts': Error: Can't resolve './polymer-element.ts' in '/Users/bbpan/src/infocery-partner-ui/node_modules/@vaadin/angular2-polymer/src'
 @ ./~/@vaadin/angular2-polymer/index.js 2:24-56
 @ ./src/app/app.component.ts
 @ ./src/app/index.ts
 @ ./src/main.ts
 @ multi main
Child html-webpack-plugin for "index.html":
         Asset     Size  Chunks       Chunk Names
    index.html  2.47 kB       0       
webpack: bundle is now VALID.
  1. Mention any other details that might be useful.
@5amfung 5amfung changed the title Getting warning from one npm package when running ng serve Webpack: Getting warning from one npm package when running ng serve Jul 28, 2016
@TheLarkInn
Copy link
Member

It looks like there is general issues for this with webpack. It may be worth reading this issue platosha/angular-polymer#32

@filipesilva
Copy link
Contributor

Fixed in #1673

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants