Closed jbphillips closed 1 year 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)
package.json
refers to ES-module entry points (module
and jsnext:main
) with the pattern {my-library-name}.js
index.js
I suspect this disconnect is underlying this issue.
An interim fix for me was to:
module
and jsnext:main
entry points in the src
directory package.json
file to refer to index.js
, and
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