Closed mschorsch closed 6 years ago
@mschorsch It looks like and issue with Typescript 2.9.x
Pinning to 2.8.4 will allow you to keep working while the problem gets figured out 😄
It's not TS 2.9, I'm pretty sure; it's actually a problem with the type defs. Try pinning to @types/ember@2.8.24
; for some reason 2.8.25 dropped the required dependencies for jQuery and Handlebars' types when auto-generated by DefinitelyTyped.
I think this is actually a combination of an issue with TS 2.9 and the missing dependencies in @types/ember
. There's a fix for the former on master
—I mistakenly thought it was part of the 1.3.1 release already, but I'll cut 1.3.2 with that fix today.
As far as the missing dependencies go, pinning to @types/ember@2.8.24
as Chris said or manually adding @types/handlebars
to your dependencies should solve it, but I'm not sure what our long-term solution looks like. I have to assume it was a bug in the types publisher, but I'm not sure the best way to get in touch with any of those folks, or whether the next publish will magically fix it.
Ok thanks. I've tested some scenarios. Here are the results:
Adding handlebars (npm install --save-dev @types/handlebars
)
ember build
hangs infinitely without message.Pinning typescript@2.8.4
ember build
but with the message node_modules/@types/ember/index.d.ts(14,23): error TS2688: Cannot find type definition file for 'handlebars'.
Pinning typescript to 2.8.4 and adding handlebars (npm install --save-dev @types/handlebars
)
ember build
without errors.Pinning @types/ember@2.8.24
ember build
hangs infinitely without message.Pinning @types/ember@2.8.24
and adding handlebars (npm install --save-dev @types/handlebars
)
ember build
hangs infinitely without message.I'm also experiencing the same issue - can confirm same as @mschorsch that pinning typescript 2.8.4 stops the issue.
@mschorsch @phammers We just released ember-cli-typescript 1.3.2, which should fix compatibility with TS 2.9 (i.e. without @types/handlebars
installed you'll only see that error message once, rather than getting caught in an infinite loop 🙂)
Thanks @dfreeman for the quick response. Just upgraded and it works fine.
After upgrade to 1.3.2 ember-cli-typescript seems working now. Thanks @dfreeman.
After a fresh install of this addon,
ember build
hangs infinitely.Steps to reproduce
=> This leads to the following failure
node_modules/@types/ember/index.d.ts(14,23): error TS2688: Cannot find type definition file for 'handlebars
.I've could reproduce this failure on Window 7 and Ubuntu 16.04 LTS (Node 8.11.2 LTS).