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.

[all] Error with type only exports with TypeScript 3.8.3

See original GitHub issue

I get a lot of errors like this one with TS 3.8.3, but not with 3.8.2:

node_modules/@thi.ng/associative/index.d.ts:1:1 - error TS1383: Only named exports may use 'export type'.

1 export type * from "./api";
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~

This is related to this issue and this PR. It effectively disallows this kind of re-export. I could not find any information, whether this should actually work or not. Anyway, this is a breaking change in Typescript.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
postspectacularcommented, Mar 23, 2020

In case you haven’t seen yet - Prettier 2.0.1 has been released over the weekend - yay!

1reaction
postspectacularcommented, Mar 9, 2020

no prob, @andrew8er & thanks, as always, for reporting this! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation - TypeScript 3.8
import type only imports declarations to be used for type annotations and declarations. It always gets fully erased, so there's no remnant of...
Read more >
Do I need to use the "import type" feature of TypeScript 3.8 if ...
import type only imports declarations to be used for type annotations and declarations. It always gets fully erased, so there's no remnant of...
Read more >
Leveraging Type-Only imports and exports with TypeScript 3.8
Well, as the TS release notes explain, by importing an element using “import type”, it tells the compiler that the element is only...
Read more >
[TS 3.8] Jest is unable to work with "type-only imports/exports"
When using a new "type-only impors/exports" feature introduced in TypeScript 3.8 it is impossible to run tests due to the parsing error:.
Read more >
type-only imports — A new TypeScript feature that benefits ...
Example 1 — Ambiguous re-export · Babel removes everything from our types module because it only contained types, which have no use in...
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