Closed mengxiangyue closed 2 years ago
您好,我已收到您的来信,暂时无法回复您的邮件,望见谅。
@mengxiangyue thank you for reporting the issue, it is not really the appropriate repository to report it but in any case what version of node
are you using? I believe for M1
you'll need to use v16
.
@vince-fugnitto thanks your response, but I also get error after change node to 16.
➜ theia-hello-world-extension yo theia-extension
? The extension's type Hello World
? The extension's name theia-hello-world-extension
TheiaHelloWorldExtension
identical package.json
identical lerna.json
identical .gitignore
identical README.md
identical .vscode/launch.json
identical theia-hello-world-extension/package.json
identical theia-hello-world-extension/tsconfig.json
identical theia-hello-world-extension/src/browser/theia-hello-world-extension-frontend-module.ts
identical theia-hello-world-extension/src/browser/theia-hello-world-extension-contribution.ts
identical theia-hello-world-extension/README.md
identical browser-app/package.json
identical electron-app/package.json
yarn install v1.22.18
[1/4] 🔍 Resolving packages...
success Already up-to-date.
$ lerna run prepare
lerna info version 2.4.0
theia-hello-world-extension: > theia-hello-world-extension@0.0.0 prepare
theia-hello-world-extension: > yarn run clean && yarn run build
theia-hello-world-extension: yarn run v1.22.18
theia-hello-world-extension: $ rimraf lib
theia-hello-world-extension: warning package.json: No license field
theia-hello-world-extension: Done in 0.47s.
theia-hello-world-extension: yarn run v1.22.18
theia-hello-world-extension: $ tsc
theia-hello-world-extension: warning package.json: No license field
theia-hello-world-extension: Done in 1.60s.
browser-app: > browser-app@0.0.0 prepare
browser-app: > theia build --mode development
electron-app: > electron-app@0.0.0 prepare
electron-app: > theia build --mode development
browser-app: Failed to resolve module: socket.io
electron-app: Found cached ffmpeg library.
electron-app: Hashes are equal, not replacing the ffmpeg library.
electron-app: Error: dlopen(/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Libraries/libffmpeg.dylib, 0x0002): tried: '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Libraries/libffmpeg.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libffmpeg.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e'))\n at Object.getFfmpegCodecs (/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/@theia/ffmpeg/lib/ffmpeg.js:80:20)\n at Object.checkFfmpeg (/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/@theia/ffmpeg/lib/check-ffmpeg.js:23:27)\n at ApplicationPackageManager.prepareElectron (/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/@theia/application-manager/lib/application-package-manager.js:153:22)\n at processTicksAndRejections (node:internal/process/task_queues:96:5)\n at async ApplicationPackageManager.prepare (/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/@theia/application-manager/lib/application-package-manager.js:64:13)\n at async ApplicationPackageManager.generate (/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/@theia/application-manager/lib/application-package-manager.js:69:13)\n at async ApplicationPackageManager.build (/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/@theia/application-manager/lib/application-package-manager.js:89:9)\n at async Object.handler (/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/@theia/cli/lib/theia.js:146:13)
electron-app: npm ERR! Lifecycle script `prepare` failed with error:
electron-app: npm ERR! Error: command failed
electron-app: npm ERR! in workspace: electron-app@0.0.0
electron-app: npm ERR! at location: /Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/electron-app
lerna ERR! execute callback with error
lerna ERR! Error: Command failed: npm run prepare
lerna ERR! Found cached ffmpeg library.
lerna ERR! Hashes are equal, not replacing the ffmpeg library.
lerna ERR! Error: dlopen(/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Libraries/libffmpeg.dylib, 0x0002): tried: '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Libraries/libffmpeg.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libffmpeg.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e'))
lerna ERR! at Object.getFfmpegCodecs (/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/@theia/ffmpeg/lib/ffmpeg.js:80:20)
lerna ERR! at Object.checkFfmpeg (/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/@theia/ffmpeg/lib/check-ffmpeg.js:23:27)
lerna ERR! at ApplicationPackageManager.prepareElectron (/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/@theia/application-manager/lib/application-package-manager.js:153:22)
lerna ERR! at processTicksAndRejections (node:internal/process/task_queues:96:5)
lerna ERR! at async ApplicationPackageManager.prepare (/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/@theia/application-manager/lib/application-package-manager.js:64:13)
lerna ERR! at async ApplicationPackageManager.generate (/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/@theia/application-manager/lib/application-package-manager.js:69:13)
lerna ERR! at async ApplicationPackageManager.build (/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/@theia/application-manager/lib/application-package-manager.js:89:9)
lerna ERR! at async Object.handler (/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/@theia/cli/lib/theia.js:146:13)
lerna ERR! npm ERR! Lifecycle script `prepare` failed with error:
lerna ERR! npm ERR! Error: command failed
lerna ERR! npm ERR! in workspace: electron-app@0.0.0
lerna ERR! npm ERR! at location: /Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/electron-app
lerna ERR!
lerna ERR!
lerna ERR! > electron-app@0.0.0 prepare
lerna ERR! > theia build --mode development
lerna ERR!
lerna ERR!
lerna ERR! at /Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/execa/index.js:236:11
lerna WARN complete Waiting for 1 child process to exit. CTRL-C to exit immediately.
browser-app: Failed to resolve module: ws
browser-app: assets by status 1.96 MiB [cached] 16 assets
browser-app: assets by status 20.1 MiB [compared for emit]
browser-app: assets by chunk 11.5 MiB (id hint: vendors)
browser-app: asset vendors-node_modules_theia_monaco_lib_browser_monaco-workspace_js.js 8.41 MiB [compared for emit] (id hint: vendors) 2 related assets
browser-app: asset vendors-node_modules_theia_monaco_lib_browser_monaco-frontend-module_js.js 623 KiB [compared for emit] (id hint: vendors) 2 related assets
browser-app: asset vendors-node_modules_theia_terminal_lib_browser_terminal-frontend-module_js.js 537 KiB [compared for emit] (id hint: vendors) 2 related assets
browser-app: asset vendors-node_modules_theia_preferences_lib_browser_preference-frontend-module_js.js 403 KiB [compared for emit] (id hint: vendors) 2 related assets
browser-app: + 21 assets
browser-app: + 13 assets
browser-app: 2028 modules
browser-app:
browser-app: WARNING in ../node_modules/@theia/monaco-editor-core/esm/vs/base/common/performance.js 81:34-41
browser-app: Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
browser-app: @ ../node_modules/@theia/monaco-editor-core/esm/vs/platform/storage/common/storage.js 20:22-65
browser-app: @ ../node_modules/@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices.js 102:18-69
browser-app: @ ../node_modules/@theia/monaco/lib/browser/monaco-frontend-module.js 83:29-117
browser-app: @ ./src-gen/frontend/index.js 59:31-89
browser-app: WARNING in ../node_modules/@theia/monaco-editor-core/esm/vs/base/common/performance.js 81:57-64
browser-app: Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
browser-app: @ ../node_modules/@theia/monaco-editor-core/esm/vs/platform/storage/common/storage.js 20:22-65
browser-app: @ ../node_modules/@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices.js 102:18-69
browser-app: @ ../node_modules/@theia/monaco/lib/browser/monaco-frontend-module.js 83:29-117
browser-app: @ ./src-gen/frontend/index.js 59:31-89
browser-app: WARNING in ../node_modules/inversify/lib/annotation/decorator_utils.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/annotation/decorator_utils.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/annotation/decorator_utils.ts'
browser-app: @ ../node_modules/inversify/lib/inversify.js 38:24-63
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/annotation/inject.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/annotation/inject.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/annotation/inject.ts'
browser-app: @ ../node_modules/inversify/lib/inversify.js 21:15-45
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/annotation/injectable.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/annotation/injectable.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/annotation/injectable.ts'
browser-app: @ ../node_modules/inversify/lib/inversify.js 15:19-53
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/annotation/multi_inject.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/annotation/multi_inject.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/annotation/multi_inject.ts'
browser-app: @ ../node_modules/inversify/lib/inversify.js 28:21-57
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/annotation/named.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/annotation/named.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/annotation/named.ts'
browser-app: @ ../node_modules/inversify/lib/inversify.js 19:14-43
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/annotation/optional.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/annotation/optional.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/annotation/optional.ts'
browser-app: @ ../node_modules/inversify/lib/inversify.js 24:17-49
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/annotation/post_construct.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/annotation/post_construct.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/annotation/post_construct.ts'
browser-app: @ ../node_modules/inversify/lib/inversify.js 32:23-61
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/annotation/tagged.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/annotation/tagged.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/annotation/tagged.ts'
browser-app: @ ../node_modules/inversify/lib/inversify.js 17:15-45
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/annotation/target_name.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/annotation/target_name.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/annotation/target_name.ts'
browser-app: @ ../node_modules/inversify/lib/inversify.js 30:20-55
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/annotation/unmanaged.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/annotation/unmanaged.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/annotation/unmanaged.ts'
browser-app: @ ../node_modules/inversify/lib/inversify.js 26:18-51
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/bindings/binding.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/bindings/binding.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/bindings/binding.ts'
browser-app: @ ../node_modules/inversify/lib/container/container.js 45:16-46
browser-app: @ ../node_modules/inversify/lib/inversify.js 6:18-50
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/bindings/binding_count.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse so
browser-app: urce map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/bindings/binding_count.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/bindings/binding_count.ts'
browser-app: @ ../node_modules/inversify/lib/planning/planner.js 4:22-58
browser-app: @ ../node_modules/inversify/lib/container/container.js 50:16-46
browser-app: @ ../node_modules/inversify/lib/inversify.js 6:18-50
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/constants/error_msgs.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/constants/error_msgs.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/constants/error_msgs.ts'
browser-app: @ ../node_modules/inversify/lib/container/container.js 46:17-51
browser-app: @ ../node_modules/inversify/lib/inversify.js 6:18-50
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/constants/literal_types.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/constants/literal_types.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/constants/literal_types.ts'
browser-app: @ ../node_modules/inversify/lib/inversify.js 8:22-58
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/constants/metadata_keys.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/constants/metadata_keys.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/constants/metadata_keys.ts'
browser-app: @ ../node_modules/inversify/lib/inversify.js 4:11-47
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/container/container.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/container/container.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/container/container.ts'
browser-app: @ ../node_modules/inversify/lib/inversify.js 6:18-50
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/container/container_module.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/container/container_module.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/container/container_module.ts'
browser-app: @ ../node_modules/inversify/lib/inversify.js 12:25-64
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/container/container_snapshot.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/container/container_snapshot.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/container/container_snapshot.ts'
browser-app: @ ../node_modules/inversify/lib/container/container.js 55:27-58
browser-app: @ ../node_modules/inversify/lib/inversify.js 6:18-50
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/container/lookup.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/container/lookup.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/container/lookup.ts'
browser-app: @ ../node_modules/inversify/lib/container/container.js 56:15-34
browser-app: @ ../node_modules/inversify/lib/inversify.js 6:18-50
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/inversify.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/inversify.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/inversify.ts'
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/planning/context.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/planning/context.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/planning/context.ts'
browser-app: @ ../node_modules/inversify/lib/planning/planner.js 10:16-36
browser-app: @ ../node_modules/inversify/lib/container/container.js 50:16-46
browser-app: @ ../node_modules/inversify/lib/inversify.js 6:18-50
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/planning/metadata.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/planning/metadata.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/planning/metadata.ts'
browser-app: @ ../node_modules/inversify/lib/annotation/tagged.js 4:17-48
browser-app: @ ../node_modules/inversify/lib/inversify.js 17:15-45
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/planning/metadata_reader.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/planning/metadata_reader.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/planning/metadata_reader.ts'
browser-app: @ ../node_modules/inversify/lib/inversify.js 34:24-61
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/planning/plan.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/planning/plan.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/planning/plan.ts'
browser-app: @ ../node_modules/inversify/lib/planning/planner.js 12:13-30
browser-app: @ ../node_modules/inversify/lib/container/container.js 50:16-46
browser-app: @ ../node_modules/inversify/lib/inversify.js 6:18-50
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/planning/planner.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/planning/planner.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/planning/planner.ts'
browser-app: @ ../node_modules/inversify/lib/container/container.js 50:16-46
browser-app: @ ../node_modules/inversify/lib/inversify.
browser-app: js 6:18-50
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/planning/queryable_string.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/planning/queryable_string.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/planning/queryable_string.ts'
browser-app: @ ../node_modules/inversify/lib/planning/target.js 7:25-54
browser-app: @ ../node_modules/inversify/lib/planning/planner.js 15:15-34
browser-app: @ ../node_modules/inversify/lib/container/container.js 50:16-46
browser-app: @ ../node_modules/inversify/lib/inversify.js 6:18-50
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/planning/reflection_utils.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/planning/reflection_utils.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/planning/reflection_utils.ts'
browser-app: @ ../node_modules/inversify/lib/planning/planner.js 13:25-54
browser-app: @ ../node_modules/inversify/lib/container/container.js 50:16-46
browser-app: @ ../node_modules/inversify/lib/inversify.js 6:18-50
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/planning/request.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/planning/request.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/planning/request.ts'
browser-app: @ ../node_modules/inversify/lib/planning/planner.js 14:16-36
browser-app: @ ../node_modules/inversify/lib/container/container.js 50:16-46
browser-app: @ ../node_modules/inversify/lib/inversify.js 6:18-50
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/planning/target.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/planning/target.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/planning/target.ts'
browser-app: @ ../node_modules/inversify/lib/planning/planner.js 15:15-34
browser-app: @ ../node_modules/inversify/lib/container/container.js 50:16-46
browser-app: @ ../node_modules/inversify/lib/inversify.js 6:18-50
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/resolution/instantiation.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/resolution/instantiation.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/resolution/instantiation.ts'
browser-app: @ ../node_modules/inversify/lib/resolution/resolver.js 8:22-48
browser-app: @ ../node_modules/inversify/lib/container/container.js 51:17-50
browser-app: @ ../node_modules/inversify/lib/inversify.js 6:18-50
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/resolution/resolver.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/resolution/resolver.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/resolution/resolver.ts'
browser-app: @ ../node_modules/inversify/lib/container/container.js 51:17-50
browser-app: @ ../node_modules/inversify/lib/inversify.js 6:18-50
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/syntax/binding_in_syntax.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/syntax/binding_in_syntax.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/syntax/binding_in_syntax.ts'
browser-app: @ ../node_modules/inversify/lib/syntax/binding_in_when_on_syntax.js 4:26-56
browser-app: @ ../node_modules/inversify/lib/syntax/binding_to_syntax.js 6:34-72
browser-app: @ ../node_modules/inversify/lib/container/container.js 52:26-64
browser-app: @ ../node_modules/inversify/lib/inversify.js 6:18-50
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/syntax/binding_in_when_on_syntax.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/syntax/binding_in_when_on_syntax.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/syntax/binding_in_when_on_syntax.ts'
browser-app: @ ../node_modules/inversify/lib/syntax/binding_to_syntax.js 6:34-72
browser-app: @ ../node_modules/inversify/lib/container/container.js 52:26-64
browser-app: @ ../node_modules/inversify/lib/inversify.js 6:18-50
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/syntax/binding_on_syntax.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/syntax/binding_on_syntax.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/syntax/binding_on_syntax.ts'
browser-app: @ ../node_modules/inversify/lib/syntax/binding_when_on_syntax.js 4:26-56
browser-app: @ ../node_modules/inversify/lib/syntax/binding_to_syntax.js 7:31-66
browser-app: @ ../node_modules/inversify/lib/container/container.js 52:26-64
browser-app: @ ../node_modules/inversify/lib/inversify.js 6:18-50
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/syntax/binding_to_syntax.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/syntax/binding_to_syntax.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/syntax/binding_to_syntax.ts'
browser-app: @ ../node_modules/inversify/lib/container/container.js 52:26-64
browser-app: @ ../node_modules/inversify/lib/inversify.js 6:18-50
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/syntax/binding_when_on_syntax.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/syntax/binding_when_on_syntax.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/syntax/binding_when_on_syntax.ts'
browser-app: @ ../node_modules/inversify/lib/syntax/binding_to_syntax.js 7:31-66
browser-app: @ ../node_modules/inversify/lib/container/container.js 52:26-64
browser-app: @ ../node_modules/inversify/lib/inversify.js 6:18-50
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/syntax/binding_when_syntax.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/syntax/binding_when_syntax.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-
browser-app: extension/node_modules/inversify/src/syntax/binding_when_syntax.ts'
browser-app: @ ../node_modules/inversify/lib/syntax/binding_when_on_syntax.js 5:28-60
browser-app: @ ../node_modules/inversify/lib/syntax/binding_to_syntax.js 7:31-66
browser-app: @ ../node_modules/inversify/lib/container/container.js 52:26-64
browser-app: @ ../node_modules/inversify/lib/inversify.js 6:18-50
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/syntax/constraint_helpers.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/syntax/constraint_helpers.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/syntax/constraint_helpers.ts'
browser-app: @ ../node_modules/inversify/lib/inversify.js 40:27-65
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/utils/binding_utils.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/utils/binding_utils.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/utils/binding_utils.ts'
browser-app: @ ../node_modules/inversify/lib/inversify.js 47:22-54
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/utils/exceptions.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/utils/exceptions.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/utils/exceptions.ts'
browser-app: @ ../node_modules/inversify/lib/planning/planner.js 8:19-49
browser-app: @ ../node_modules/inversify/lib/container/container.js 50:16-46
browser-app: @ ../node_modules/inversify/lib/inversify.js 6:18-50
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/utils/id.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/utils/id.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/utils/id.ts'
browser-app: @ ../node_modules/inversify/lib/inversify.js 36:11-32
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/inversify/lib/utils/serialization.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/utils/serialization.ts' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/inversify/src/utils/serialization.ts'
browser-app: @ ../node_modules/inversify/lib/inversify.js 45:22-54
browser-app: @ ./src-gen/frontend/index.js 5:22-42
browser-app: WARNING in ../node_modules/vscode-textmate/release/main.js 23:15-27
browser-app: Critical dependency: the request of a dependency is an expression
browser-app: @ ../node_modules/@theia/monaco/lib/browser/textmate/monaco-theme-registry.js 27:26-52
browser-app: @ ../node_modules/@theia/monaco/lib/browser/monaco-theming-service.js 36:32-75
browser-app: @ ../node_modules/@theia/monaco/lib/browser/monaco-frontend-module.js 69:33-68
browser-app: @ ./src-gen/frontend/index.js 59:31-89
browser-app: WARNING in ../node_modules/vscode-textmate/release/main.js
browser-app: Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
browser-app: Failed to parse source map from '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/vscode-textmate/release/main.js.map' file: Error: ENOENT: no such file or directory, open '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/vscode-textmate/release/main.js.map'
browser-app: @ ../node_modules/@theia/monaco/lib/browser/textmate/monaco-theme-registry.js 27:26-52
browser-app: @ ../node_modules/@theia/monaco/lib/browser/monaco-theming-service.js 36:32-75
browser-app: @ ../node_modules/@theia/monaco/lib/browser/monaco-frontend-module.js 69:33-68
browser-app: @ ./src-gen/frontend/index.js 59:31-89
browser-app: 46 warnings have detailed information that is not shown.
browser-app: Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
browser-app: webpack 5.72.1 compiled with 46 warnings in 6539 ms
node:internal/process/promises:279
triggerUncaughtException(err, true /* fromPromise */);
^
Error: Command failed: npm run prepare
Found cached ffmpeg library.
Hashes are equal, not replacing the ffmpeg library.
Error: dlopen(/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Libraries/libffmpeg.dylib, 0x0002): tried: '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Libraries/libffmpeg.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libffmpeg.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e'))
at Object.getFfmpegCodecs (/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/@theia/ffmpeg/lib/ffmpeg.js:80:20)
at Object.checkFfmpeg (/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/@theia/ffmpeg/lib/check-ffmpeg.js:23:27)
at ApplicationPackageManager.prepareElectron (/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/@theia/application-manager/lib/application-package-manager.js:153:22)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async ApplicationPackageManager.prepare (/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/@theia/application-manager/lib/application-package-manager.js:64:13)
at async ApplicationPackageManager.generate (/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/@theia/application-manager/lib/application-package-manager.js:69:13)
at async ApplicationPackageManager.build (/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/@theia/application-manager/lib/application-package-manager.js:89:9)
at async Object.handler (/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/@theia/cli/lib/theia.js:146:13)
npm ERR! Lifecycle script `prepare` failed with error:
npm ERR! Error: command failed
npm ERR! in workspace: electron-app@0.0.0
npm ERR! at location: /Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/electron-app
> electron-app@0.0.0 prepare
> theia build --mode development
at /Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/execa/index.js:236:11
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
code: 1,
killed: false,
stdout: '\n> electron-app@0.0.0 prepare\n> theia build --mode development\n\n',
stderr: 'Found cached ffmpeg library.\n' +
'Hashes are equal, not replacing the ffmpeg library.\n' +
"Error: dlopen(/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Libraries/libffmpeg.dylib, 0x0002): tried: '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Libraries/libffmpeg.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libffmpeg.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e'))\n" +
' at Object.getFfmpegCodecs (/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/@theia/ffmpeg/lib/ffmpeg.js:80:20)\n' +
' at Object.checkFfmpeg (/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/@theia/ffmpeg/lib/check-ffmpeg.js:23:27)\n' +
' at ApplicationPackageManager.prepareElectron (/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/@theia/application-manager/lib/application-package-manager.js:153:22)\n' +
' at processTicksAndRejections (node:internal/process/task_queues:96:5)\n' +
' at async ApplicationPackageManager.prepare (/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/@theia/application-manager/lib/application-package-manager.js:64:13)\n' +
' at async ApplicationPackageManager.generate (/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/@theia/application-manager/lib/application-package-manager.js:69:13)\n' +
' at async ApplicationPackageManager.build (/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/@theia/application-manager/lib/application-package-manager.js:89:9)\n' +
' at async Object.handler (/Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/node_modules/@theia/cli/lib/theia.js:146:13)\n' +
'npm ERR! Lifecycle script `prepare` failed with error: \n' +
'npm ERR! Error: command failed \n' +
'npm ERR! in workspace: electron-app@0.0.0 \n' +
'npm ERR! at location: /Users/xiangyue/Desktop/theia-workspace/theia-hello-world-extension/electron-app \n',
failed: true,
signal: null,
cmd: 'npm run prepare',
timedOut: false,
exitCode: 1
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
➜ theia-hello-world-extension node -v
v16.15.0
➜ theia-hello-world-extension arch
arm64
➜ theia-hello-world-extension npm -v
8.5.5
➜ theia-hello-world-extension
@mengxiangyue I don't have an M1 device myself but I believe you ran into this issue:
ok thank you, will try it.
My CI runs Apple M1 and I need to build theia for both archs: Intel & Apple M1. I found the problem and solution to package my app for both x64 and arm64 (M1) archs on my CI.
Problem 1:
libffmpeg.dylib
file at $TMPDIR/theia-cli/cache
. If I was running node version with x64 arch before and then I package my app for arm64, it will crash because theia always get libffmpeg.dylib from cached folder without arch.Problem 2:
node_modules/electron/dist
.Workaround:
node_modules/electron/dist
folder with my cache folder for each arch.Closing as it is not the appropriate repository for the discussion.
I do this tutorial Authoring Theia Extensions on apple M1, but when I do the
yarn start
gets the below error: