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

Error with generated theia plugin templates #33

Open
arunswarnam opened this issue Jan 7, 2021 · 3 comments
Open

Error with generated theia plugin templates #33

arunswarnam opened this issue Jan 7, 2021 · 3 comments

Comments

@arunswarnam
Copy link

I am trying to pack my hello world theia plugin to see how to ship a theia plugin once developed and I am seeing these errors with the scaffold-ed code
`13:44 $ yo @theia/plugin

 _-----_
|       |    ╭──────────────────────────╮
|--(o)--|    │   Welcome to the 'Theia  │

---------´ │ Plug-in' generator! │ ( _´U_ ) ╰──────────────────────────╯
/A\ /
| ~ |
'..'_
´ |° ´ Y

? What is the plug-in's name? test-plugin
? What type of plug-in do you want? Backend plug-in, it will run on the server side.
? Please, choose a template: Samples
? Please, choose the sample: Quick Pick sample
License is not specified. You can do it via --license parameter.
create test-plugin/package.json
create test-plugin/.gitignore
create test-plugin/README.md
create test-plugin/tsconfig.json
create test-plugin/tsfmt.json
create test-plugin/src/test-plugin-backend.ts
Installing dependencies with yarn...
yarn install v1.22.10
info No lockfile found.
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
[5/5] Building fresh packages...
success Saved lockfile.
$ yarn run clean && yarn run build
yarn run v1.22.10
$ rimraf lib
Done in 0.15s.
yarn run v1.22.10
$ yarn run format-code && yarn run compile && theia-plugin pack
$ tsfmt -r
replaced /Users/aswarnam/workspace/theia/test-plugin/src/test-plugin-backend.ts
$ tsc
../node_modules/dom-serializer/lib/index.d.ts(1,13): error TS1005: '=' expected.
../node_modules/dom-serializer/lib/index.d.ts(1,27): error TS1005: ';' expected.
../node_modules/domutils/lib/helpers.d.ts(1,13): error TS1005: '=' expected.
../node_modules/domutils/lib/helpers.d.ts(1,27): error TS1005: ';' expected.
../node_modules/domutils/lib/legacy.d.ts(1,13): error TS1005: '=' expected.
../node_modules/domutils/lib/legacy.d.ts(1,36): error TS1005: ';' expected.
../node_modules/domutils/lib/manipulation.d.ts(1,13): error TS1005: '=' expected.
../node_modules/domutils/lib/manipulation.d.ts(1,36): error TS1005: ';' expected.
../node_modules/domutils/lib/querying.d.ts(1,13): error TS1005: '=' expected.
../node_modules/domutils/lib/querying.d.ts(1,36): error TS1005: ';' expected.
../node_modules/domutils/lib/stringify.d.ts(1,13): error TS1005: '=' expected.
../node_modules/domutils/lib/stringify.d.ts(1,27): error TS1005: ';' expected.
../node_modules/domutils/lib/tagtypes.d.ts(1,13): error TS1005: '=' expected.
../node_modules/domutils/lib/tagtypes.d.ts(1,64): error TS1005: ';' expected.
../node_modules/domutils/lib/traversal.d.ts(1,13): error TS1005: '=' expected.
../node_modules/domutils/lib/traversal.d.ts(1,54): error TS1005: ';' expected.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
`
Not sure what should I be doing to pack and ship a theia plugin.

@arunswarnam
Copy link
Author

I figured to pack a theia plugin by executing yarn theia-plugin pack from inside the plug in folder. Also, I was always able to run this plugin in the hosted mode.
Not sure why the above error shows up on $ tsc and if the above error is something that needs to be looked into.

@ahczbhht1989
Copy link

I got some problem

@Rachol
Copy link

Rachol commented Jul 13, 2022

Theia has dropped support for the tsc version specified in the plugin. Install newer version of typescript and the errors will disappear.

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

3 participants