When starting a new project from scratch as per the Get Started instructions the yo langium command throws an error during the final build step.
How to reproduce
Create a new project from scratch using the yo langium tool
Accept all the default options: Include VSCode extension, Include CLI, Include Web worker
Also running the npm run build:web command on the project causes the same failure
Expected behaviour
Fresh project is created and all build actions work correctly
Observed behaviour
The project is created successfully but during the last stages of the process, the build:web command causes the error shown below. The same behaviour is observed if the npm run build:web command is run at a later time.
"initialize" is not exported by "node_modules/vscode/extensions.js", imported by "node_modules/monaco-languageclient/lib/monaco-vscode-api-services.js".
file: D:/Programming/experiments/hello-world/node_modules/monaco-languageclient/lib/monaco-vscode-api-services.js:6:9
4: * ------------------------------------------------------------------------------------------ */
5: import { ILogService, initialize, StandaloneServices } from 'vscode/services';
6: import { initialize as initializeVscodeExtensions } from 'vscode/extensions';
^
7: import getLanguagesServiceOverride from '@codingame/monaco-vscode-languages-service-override';
8: import getModelServiceOverride from '@codingame/monaco-vscode-model-service-override';
error during build:
RollupError: "initialize" is not exported by "node_modules/vscode/extensions.js", imported by "node_modules/monaco-languageclient/lib/monaco-vscode-api-services.js".
at error (file:///D:/Programming/experiments/hello-world/node_modules/rollup/dist/es/shared/node-entry.js:2287:30)
at Module.error (file:///D:/Programming/experiments/hello-world/node_modules/rollup/dist/es/shared/node-entry.js:13745:16)
at Module.traceVariable (file:///D:/Programming/experiments/hello-world/node_modules/rollup/dist/es/shared/node-entry.js:14175:29)
at ModuleScope.findVariable (file:///D:/Programming/experiments/hello-world/node_modules/rollup/dist/es/shared/node-entry.js:12615:39)
at ReturnValueScope.findVariable (file:///D:/Programming/experiments/hello-world/node_modules/rollup/dist/es/shared/node-entry.js:7124:38)
at ChildScope.findVariable (file:///D:/Programming/experiments/hello-world/node_modules/rollup/dist/es/shared/node-entry.js:7124:38)
at Identifier.bind (file:///D:/Programming/experiments/hello-world/node_modules/rollup/dist/es/shared/node-entry.js:8319:40)
at CallExpression.bind (file:///D:/Programming/experiments/hello-world/node_modules/rollup/dist/es/shared/node-entry.js:5892:23)
at CallExpression.bind (file:///D:/Programming/experiments/hello-world/node_modules/rollup/dist/es/shared/node-entry.js:9890:15)
at AwaitExpression.bind (file:///D:/Programming/experiments/hello-world/node_modules/rollup/dist/es/shared/node-entry.js:5892:23)
✖ An error occured while running langium:app#install
Error langium
Command failed with exit code 1: npm run build:web
Problem Description
When starting a new project from scratch as per the Get Started instructions the
yo langium
command throws an error during the final build step.How to reproduce
yo langium
toolnpm run build:web
command on the project causes the same failureExpected behaviour
Fresh project is created and all build actions work correctly
Observed behaviour
The project is created successfully but during the last stages of the process, the
build:web
command causes the error shown below. The same behaviour is observed if thenpm run build:web
command is run at a later time.