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.

error TS1110: Type expected

See original GitHub issue

I’m submitting a bug report

  • Library Version: 1.5.0 and 1.5.1

Please tell us about your environment:

  • Operating System: OSX 10.x and Linux Ubuntu

  • Node Version: 10.14.2

  • NPM Version: 6.6.0

  • JSPM OR Webpack AND Version Webpack

  • Browser: not relevant, bug is in building process of other library dependent of this one

  • Language: TypeScript 3.6.4 (also tested with older versions of TS)

Current behavior: Since the new typing definition, we encountered issues trying to build plugins and projects that depend on aurelia-dependency-injection. For exemple, trying to build aurelia-ux project, we get the error:

../../node_modules/aurelia-dependency-injection/dist/aurelia-dependency-injection.d.ts(67,5): error TS1110: Type expected.
[3] ../../node_modules/aurelia-dependency-injection/dist/aurelia-dependency-injection.d.ts(67,5): error TS1110: Type expected.
[4] ../../node_modules/aurelia-dependency-injection/dist/aurelia-dependency-injection.d.ts(67,5): error TS1110: Type expected.

Expected/desired behavior: No error when building projects that depend on aurelia-dependency-injection

  • What is the motivation / use case for changing the behavior? I’m stuck in several projects due to this bug. I can force projects that have direct dependency to stick with 1.4.2 but it becomes complicated when I work on projects that have dependency to aurelia-dependency-injection through other dependencies…

See Aurelia Discourse discussion here: https://discourse.aurelia.io/t/contributing-to-aurelia-ux/3023

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
EisenbergEffectcommented, Oct 31, 2019

@DrSammyD Would you be able to help us resolve this?

0reactions
DrSammyDcommented, Nov 12, 2019

@bigopon I mean, it must have or the this wouldn’t have passed PR checks and this…

https://github.com/aurelia/dependency-injection/blob/98c00441a4a9fe5224e8bd6ecd9fbcac4072643d/dist/aurelia-dependency-injection.d.ts#L65-L68

… wouldn’t have ever been generated when compiling with typescript and running the tests. https://github.com/aurelia/dependency-injection/blob/98c00441a4a9fe5224e8bd6ecd9fbcac4072643d/package.json#L35 https://github.com/aurelia/dependency-injection/blob/98c00441a4a9fe5224e8bd6ecd9fbcac4072643d/package.json#L103

So the issue only shows up when old typings conflict with the new ones? Should the other projects update to the new typings?

Would this fix actually be generically fix or are we going to have to continually change these typings to match what other projects are expecting?

Read more comments on GitHub >

github_iconTop Results From Across the Web

"error TS1110: Type expected" when using export type
This is caused by grunt-typescript having an out-of-date version of the TypeScript compiler. Check your package.json to ensure you're using a current ...
Read more >
Error TS1110 Build: Type expected · Issue #8769 - GitHub
i am getting error from node.d.ts. Error TS1110 Build: Type expected. My tsd.json file look like the following { "version": "v4",
Read more >
Error TS1110: Type expected - Akanksha's Blog
Verify that the folder named rush-stack-compiler-3.3 inside node_modules/@microsoft folder. Now remove dependencies from package.json file for ...
Read more >
angular/angular-cli - Gitter
d.ts(85,23): error TS1110: Type expected. typings/browser/ambient/node/node.d ...
Read more >
TypeScript error while bulding project - Forge Custom UI and ...
Fix the errors listed below before rerunning the command. ... /node_modules/bind-event-listener/dist/types.d.ts(3,83) TS1110: Type expected.
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