Skip to content

Unclear "Linked libraries" document - seeking clarification #7552

@supdegrave

Description

@supdegrave

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.3.0
node: 8.0.0
os: darwin x64
@angular/animations: 4.3.5
@angular/common: 4.3.5
@angular/compiler: 4.3.5
@angular/core: 4.3.5
@angular/forms: 4.3.5
@angular/http: 4.3.5
@angular/platform-browser: 4.3.5
@angular/platform-browser-dynamic: 4.3.5
@angular/router: 4.3.5
@angular/cli: 1.3.0
@angular/compiler-cli: 4.3.5
@angular/language-service: 4.3.5

Repro steps.

This is mostly a documentation bug, I guess.

I'm trying to pull in a shared module from my local filesystem, outside the scope of my main application, and running into the common
Please add a @NgModule annotation. I'm not here asking about that.

I'm trying to follow the guidelines in the Linked Libraries story, but it feels like there's something missing.

After listing peerDependencies and devDependencies in the shared module's package.json, and configuring paths in the main app's tsconfig.app.json, where's the magic? Is there an implied npm install that should happen?

Desired functionality.

Very clear steps in the document, along the following:

  1. Configure package.json for the external package library: ...
  2. Configure tsconfig.json for the main application: ...
  3. <magic, if any>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions