jvandemo / generator-angular2-library

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

Unable to create nested dependent modules #211

Open yoooee opened 7 years ago

yoooee commented 7 years ago

I am able to create a library and install it into a angular cli generated app without issue. However, if I want to use the library in a new library and use the new library, I continue to receive the following error:

ERROR in Error: Error encountered resolving symbol values statically. Could not resolve first-library relative to /Users/second-library-use/node_modules/second-library/second-library.d.ts.,

Steps I took to create the above:

  1. Create first angular library.
  2. Change all references of sampleModule to firstModule, etc...
  3. npm run build
  4. Create second angular library.
  5. Change all references of sampleModule to secondModule, etc...
  6. npm install firstModule
  7. Import firstModule & use.
  8. npm run build
  9. npm install secondModule into angular cli generated app.
  10. Import secondModule and use.
  11. ng serve

Error...

What am I missing?

broweratcognitecdotcom commented 7 years ago

Please show me your module files for module1, module2, and app