Fails to compile in typescript
See original GitHub issueAddon uses ember-cli-typescript
and ember-lifeline
. When building its dummy app or during the precompile
step of npm publish
I get the following errors:
node_modules/ember-lifeline/dom-event-listeners.d.ts(45,114): error TS2304: Cannot find name 'RunMethod'.
node_modules/ember-lifeline/dom-event-listeners.d.ts(53,117): error TS2304: Cannot find name 'RunMethod'.
node_modules/ember-lifeline/run-task.d.ts(11,78): error TS2304: Cannot find name 'EmberRunTimer'.
node_modules/ember-lifeline/run-task.d.ts(45,94): error TS2304: Cannot find name 'EmberRunTimer'.
node_modules/ember-lifeline/run-task.d.ts(80,67): error TS2304: Cannot find name 'EmberRunQueues'.
node_modules/ember-lifeline/run-task.d.ts(80,124): error TS2304: Cannot find name 'EmberRunTimer'.
node_modules/ember-lifeline/run-task.d.ts(112,90): error TS2304: Cannot find name 'EmberRunTimer'.
node_modules/ember-lifeline/run-task.d.ts(144,46): error TS2304: Cannot find name 'EmberRunTimer'.
node_modules/ember-lifeline/run-task.d.ts(145,64): error TS2304: Cannot find name 'EmberRunTimer'.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Typescript 'Failed to Compile` Errors as Warnings
Admittedly a Typescript noob but this took me forever to figure out. CRA defaults strict to true which will fail the compilation for...
Read more >Cannot compile TypeScript. Config file is incorrect ... - YouTrack
Error running 'Compile TypeScript': Cannot compile TypeScript. Config file is incorrect when tsconfig.json has another name. · Install Jasmine plugin. · Create a ......
Read more >TSError: Unable to compile TypeScript after version `10.1.0 ...
After upgrading from version 10.0.3 to 10.1.0 cypress shows this error. The typescript file seems to be ignored, the project works fine with...
Read more >TypeScript Compiling with Visual Studio Code
Compiling TypeScript. TypeScript is a typed superset of JavaScript that transpiles to plain JavaScript. It offers classes, modules, and interfaces to help ...
Read more >I got Unable to compile TypeScript error - CircleCI Discuss
[test:execute] TSError: ⨯ Unable to compile TypeScript: [test:execute] src/step_definitions/DEMO_RESTAPI.steps.ts(5,24): error TS2307: Cannot ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Should be fixed by #412
Ya I think for consumers of this addon in other addons, we need to add
@types
to dependencies.In the case of the types above, they’re added to
types/ember.d.ts
. I’m not sure how to export them so they’re available to consumers.Any ideas?
As an aside, I don’t grok why those types, which are in
@types/ember
, are not available in my addon and I have to redefine them. Perhaps related?