jvandemo / jvandemo/generator-angular2-library

Unable to create nested dependent modules

Open
#211 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
740
Forks
116
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the reported steps with two generated libraries, installing the first into the second and the second into an Angular CLI app. Start by inspecting second-library/second-library.d.ts and the npm run build and ng serve stages; done means the nested dependency resolves without the static symbol error.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, javascript
Domain
build-system, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.