Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

fix: issue with isolateModules flag #3495

Merged
merged 2 commits into from
Jan 22, 2021
Merged

Conversation

Gozala
Copy link
Contributor

@Gozala Gozala commented Jan 21, 2021

Fixes #3494

It appears that react-scripts swaps isolateModules which causes problems in webui because according to TS:

Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'. TS1205

Changes here address that problem as follows:

  • export type {...} is used as per TS error.
  • isolateModules flag is set to true so that such issues can be caught locally.
  • Setting flags seems to have triggered problems in ipfs-client, so I had to add some type annotations to fix that.
  • Added references in ipfs-client/tsconfig.json, otherwise it does not pick up changes in the dependencies unless they are manually rebuild.

Copy link
Member

@achingbrain achingbrain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ipfs-core-types causes problems when isolateModules flag is set
3 participants