angular: npm link doesn't work with angular2 packages

I’m submitting a … (check one with “x”)

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior I have module A. I run npm link in that folder. I have module B. I run 'npm link A` in that folder. I import module A into module B. Webpack build runs without errors. But I get error in the Chrome: compiler.umd.js?9df7:14126 Uncaught Error: Unexpected value ‘A’ imported by the module ‘B’

Expected behavior It should import module without errors.

Please tell us about your environment: Windows 10, Chrome 52, Webstorm 2016.2.3

  • Angular version: 2.0.0
  • Language: TypeScript 1.8.10
  • Node (for AoT issues): node --version = 6.5.0

NOTE: I’m using nvm for Windows.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 9
  • Comments: 19 (4 by maintainers)

Most upvoted comments

Your question sounds like a support request.

Please use the issue tracker only for bugs and feature requests.

Use gitter and StackOverflow for support request.

I closed the issue because the description was not clear.

We do not actively monitor closed issues.

If someone has a clear description for the issue please open a new issue.

@darkedges , please see this one: https://github.com/angular/angular/issues/11834

My work around was to

  1. remove node_modules, typings folders from a linked module folder
  2. move my linked module folder to node_modules folder of parent module
  3. start webpack

Also we had some issues with tslint config file so I re-named it to tslint.conf.json in the linked module.