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

Discrepencies in typescript version with theia core #7

Open
mikael-desharnais opened this issue Jun 30, 2020 · 0 comments
Open

Discrepencies in typescript version with theia core #7

mikael-desharnais opened this issue Jun 30, 2020 · 0 comments

Comments

@mikael-desharnais
Copy link

When creating a plugin, I get the following error :
ERROR in xxx\theia\node_modules\htmlparser2\lib\CollectingHandler.d.ts
[tsl] ERROR in xxx\theia\node_modules\htmlparser2\lib\CollectingHandler.d.ts(5,29)
TS1110: Type expected.

It comes from the fact that the htmlparser2 of theia was transpiled using Typescript v3.9.2 and that this yeoman command uses v2.9.2.
The package htmlparser2 one transpiled requires some features that are not supported by Typescript v2.

The easiest solution would be to change the dependencies to Typescript ^3.0.0 in the package.json

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

No branches or pull requests

1 participant