Closed vance closed 8 years ago
i tried to use typings to search for angular2 related type definitions, but couldn't find them.
This was fixed in one of the more recent versions. If you re-make your project using beta.5 or above it should be fine.
I am facing this same problem in a more recent version of cli angular-cli: 1.0.0-beta.9 node: 6.0.0 os: win32 x64
Yeah I'm also having the same problem in the current version of cli
angular-cli: 1.0.0-beta.9 node: 6.3.0 os: darwin x64
Same here. Strange thing is I updated Angular to RC4 and the CLI to most recent a few days ago, and it's worked fine since. Just today it stopped working.
angular-cli: 1.0.0-beta.9 node: 4.4.5 os: win32 x64
I have an update. I had removed the "Files" section from tsconfig.json in order to fix an issue where VS Code was marking squiggly lines on the component decorator which I thought might be because the files section limits the experimentalDecorators: true
setting to those two.
"files": [
"main.ts",
"typings.d.ts"
]
Typings.d.ts contains the declare statement for 'module', and re-adding the two entries enabled the build.
for atom-typescript :
"files": [
"main.ts",
"typings.d.ts"
],
for ng build :
"filesGlob": [
"main.ts",
"typings.d.ts"
]
I put them together.
"files": [
"main.ts",
"typings.d.ts"
],
"filesGlob": [
"main.ts",
"typings.d.ts",
"app/**/*.ts"
]
That works for me.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.