TypeFox / monaco-languageclient

Repo hosts npm packages for monaco-languageclient, vscode-ws-jsonrpc, monaco-editor-wrapper, @typefox/monaco-editor-react and monaco-languageclient-examples
https://www.npmjs.com/package/monaco-languageclient
MIT License
1.04k stars 178 forks source link

Yeoman project starter and npm run build:web fail during build/execution #601

Closed CarlosGamez-Nova closed 6 months ago

CarlosGamez-Nova commented 6 months ago

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

image

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
msujew commented 6 months ago

We already have an issue for this over at the Langium repo, see https://github.com/eclipse-langium/langium/issues/1315.

CarlosGamez-Nova commented 6 months ago

My apologies. I didn't see the open issue. Closing this now.