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

Error with generated theia plugin templates #33

@arunswarnam

Description

@arunswarnam

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions