-
Notifications
You must be signed in to change notification settings - Fork 12k
Description
Bug Report or Feature Request (mark with an x
)
- [x ] bug report -> please search issues before submitting
- [ ] feature request
Versions.
@angular/cli: 1.0.0
node: 6.9.4
os: win32 x64
@angular/common: 4.0.0
@angular/compiler: 4.0.0
@angular/core: 4.0.0
@angular/forms: 4.0.0
@angular/http: 4.0.0
@angular/platform-browser: 4.0.0
@angular/platform-browser-dynamic: 4.0.0
@angular/router: 4.0.0
@angular/cli: 1.0.0
@angular/compiler-cli: 4.0.0
Repro steps.
I have a directive where I import:
import {isPropertyUpdated} from "@angular/forms/src/directives/shared";
When I run npm start I get the error.
The log given by the failure.
ERROR in ./src/app/directives/contenteditable-model.directive.ts
Module not found: Error: Can't resolve '@angular/forms/src/directives/shared' in 'C:\Users\landesko\projectDir\angular\src\app\directives'
@ ./src/app/directives/contenteditable-model.directive.ts 12:0-73
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts
Desired functionality.
Apparently this has something to do with deep imports, however I need to make use of isPropertyUpdated. Is there an alternative?
Mention any other details that might be useful.
The code I use is similar to the code found here:
http://stackoverflow.com/a/40183067/3417943