Theia 1.23 build error!

i can execute cmd : “yarn” and “yarn download:plugins” success
but when i execute “yarn browser build” failed
yarn browser build
yarn run v1.22.5
$ yarn -s --cwd examples/browser build
Failed to resolve module: socket.io
Failed to resolve module: filenamify
Failed to resolve module: socket.io

Failed to resolve module: filenamify

assets by status 237 KiB [cached] 2 assets
assets by path *.js 19.7 MiB
assets by chunk 4.27 MiB (id hint: vendors)
asset vendors-node_modules_highlight_js_lib_index_js-node_modules_markdown-it-anchor_index_js.bundle.js 1.39 MiB [emitted] (id hint: vendors) 2 related assets
+ 17 assets

  • 104 assets
    assets by path vs/ 21.5 MiB
    assets by path vs/editor/ 19.9 MiB 13 assets
    assets by path vs/base/ 1.48 MiB 3 assets
    asset vs/loader.js 86.5 KiB [emitted] [from: …/…/node_modules/@theia/monaco-editor-core/dev/vs/loader.js] [copied] 1 related asset
    assets by info 1.69 MiB [immutable]
    assets by chunk 1.19 MiB (auxiliary name: main) 11 assets
    assets by path .png 28.3 KiB 2 assets
    asset 6e3d5ec6699a8d147d29.wasm 457 KiB [emitted] [immutable] [from: …/…/node_modules/onigasm/lib/onigasm.wasm] (auxiliary id hint: vendors) 1 related asset
    asset 57695d7e34f6d23addde.svg 21 KiB [emitted] [immutable] [from: …/…/packages/monaco/src/browser/style/symbol-sprite.svg] 1 related asset
    runtime modules 13.2 KiB 23 modules
    orphan modules 15 KiB [orphan] 7 modules
    modules by path …/…/packages/ 9.06 MiB (javascript) 65.1 KiB (asset) 1355 modules
    modules by path …/…/node_modules/ 7.5 MiB (javascript) 1.83 MiB (asset)
    javascript modules 7.46 MiB 878 modules
    asset modules 1.01 KiB (javascript) 1.83 MiB (asset) 14 modules
    json modules 31.6 KiB 3 modules
    modules by path …/api-samples/ 67.6 KiB (javascript) 27.2 KiB (asset)
    modules by path …/api-samples/lib/browser/ 58.3 KiB 13 modules
    modules by path …/api-samples/src/browser/ 9.26 KiB (javascript) 27.2 KiB (asset) 6 modules
    modules by path …/…/dev-packages/ 54.5 KiB
    modules by path …/…/dev-packages/ovsx-client/ 48.1 KiB 4 modules
    modules by path …/…/dev-packages/application-package/lib/
    .js 6.46 KiB 2 modules
  • 8 modules

WARNING in …/…/node_modules/inversify/lib/annotation/decorator_utils.js
Module Warning (from …/…/node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from ‘/home/test600/theia-master/node_modules/inversify/src/annotation/decorator_utils.ts’ file: Error: ENOENT: no such file or directory, open ‘/home/test600/theia-master/node_modules/inversify/src/annotation/decorator_utils.ts’
@ …/…/node_modules/inversify/lib/inversify.js 38:24-63
@ ./src-gen/frontend/index.js 5:22-42

WARNING in …/…/node_modules/inversify/lib/annotation/inject.js
Module Warning (from …/…/node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from ‘/home/test600/theia-master/node_modules/inversify/src/annotation/inject.ts’ file: Error: ENOENT: no such file or directory, open ‘/home/test600/theia-master/node_modules/inversify/src/annotation/inject.ts’
@ …/…/node_modules/inversify/lib/inversify.js 21:15-45
@ ./src-gen/frontend/index.js 5:22-42

node version 12.21.0 yarn 1.22.5 ,python 3.6 so some Prerequisites I missing?

@sunchuanstc thank you for the discussion, as far as I am aware those are only warning logs, did you get a final error? Does the application start after you attempt yarn browser build?

1 Like

@vince-fugnitto Thank you for your answer.I am careless.it’s work. I see Error and Failed in the log,and think build failed. thx again.