Closed haoliangyu closed 8 years ago
Yes beta.1 is a reason, got same yesterday. angular-modal uses beta.0 so here is a trouble. Remove angular2 reference from angular2-modal\node_modules it should be okay.
@sunnyque What do you mean by removing angular2 reference from angular2-modal\node_modules?
@haoliangyu remove angular2 folder from your projects ./../node_modules/angular2-modal/node_modules
@shlomiassaf please change dependencies in package.json from "angular2": "2.0.0-beta.0", to "^2.0.0-beta.0"
Did you try latest npm package? it should fix the issue.
@shlomiassaf The problem is fixed. Thanks
I try to import angular2-model objects in my project using following code
However, when I run
webpack-dev-server
, I get many 'ERROR TS2300'. Just take some as examples:I use ts-loader to handle all typescript files and my webpack config is here.
When I remove all imports, everything works fine. I am currently using angular 2.0.0 beta.1, is that the reason?