question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fails to compile in typescript

See original GitHub issue

Addon 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:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
scalvertcommented, Apr 29, 2019

Should be fixed by #412

0reactions
scalvertcommented, Aug 14, 2018

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found