jvandemo / generator-angular2-library

Yeoman generator to create an Angular library
MIT License
752 stars 122 forks source link

Project not recognizing a newly generated package after npm install #214

Closed jbphillips closed 1 year ago

jbphillips commented 7 years ago

Problem: "Cannot find module" after successful install of newly generated library

What I did:

Any ideas why I might not find reference to my new generated library? Again, it is in node_modules as expected however while entering it into app.modules.ts, it cannot be found.

Thank you.

OS and Version?

Windows 7

Generator Version

11.4.0

Tools Version

Output from: yo --version, 2.0.0 Output from: node --version, 6.11.3 Output from: npm -v 5.3.0

Targeted Angular version

2+

Repro steps.

Install Yeoman: npm install -g yo Install Gulp: npm install -g gulp-cli Install Angular CLI: npm install -g

tomwanzek commented 7 years ago

I just migrated a Iocally developed library over to the latest version of the library generator. Here is what I noticed after the build process (dist folder)

I suspect this disconnect is underlying this issue.

tomwanzek commented 7 years ago

An interim fix for me was to: