opensumi / app-desktop Goto Github PK
View Code? Open in Web Editor NEWThe mini-app liked IDE - 类小程序界面 IDE 实例项目
The mini-app liked IDE - 类小程序界面 IDE 实例项目
使用yarn安装完项目后启动报错
错误信息:
Unable to find Electron app at XXX
cannot find modele xxx/app-desktop/app/bootstrap/main.js
please verify that the package.json has a valid "main" entry
希望能给出解决办法
yarn run pack:prod
报错,提示scripts/pack.js
中缺少product.json
文件scripts/pack.js
文件并添加productName
字段后再次执行报错UnhandledPromiseRejectionWarning: Error: Invalid version: "{{auto-fill-version}}"
,使用的node版本为14.19.0
,下面是报错信息(node:54596) UnhandledPromiseRejectionWarning: Error: Invalid version: "{{auto-fill-version}}"
at fixVersionField (/Users/xxx/Projects/opensumi/app-desktop/node_modules/app-builder-lib/src/util/normalizePackageData.ts:146:13)
at Object.normalizePackageData (/Users/xxx/Projects/opensumi/app-desktop/node_modules/app-builder-lib/src/util/normalizePackageData.ts:7:5)
at Object.readPackageJson (/Users/xxx/Projects/opensumi/app-desktop/node_modules/app-builder-lib/src/util/packageMetadata.ts:15:3)
at Packager.readProjectMetadataIfTwoPackageStructureOrPrepacked (/Users/xxx/Projects/opensumi/app-desktop/node_modules/app-builder-lib/src/packager.ts:399:16)
at Packager.build (/Users/xxx/Projects/opensumi/app-desktop/node_modules/app-builder-lib/src/packager.ts:328:24)
at Object.executeFinally (/Users/xxx/Projects/opensumi/app-desktop/node_modules/builder-util/src/promise.ts:12:14)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:54596) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:54596) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
yarn run build
报错
[webpack-cli] Failed to load '/Users/xxx/Projects/opensumi/app-desktop/build/webpack.main.config.ts' config
[webpack-cli] build/webpack.base.config.ts:66:7 - error TS2322: Type 'TsconfigPathsPlugin' is not assignable to type '"..." | ResolvePluginInstance'.
Type 'TsconfigPathsPlugin' is not assignable to type 'ResolvePluginInstance'.
Types of property 'apply' are incompatible.
Type '(resolver: import("/Users/xxx/Projects/opensumi/app-desktop/node_modules/tsconfig-paths-webpack-plugin/lib/plugin.temp.types").Resolver) => void' is not assignable to type '(resolver: import("/Users/xxx/Projects/opensumi/app-desktop/node_modules/webpack/types").Resolver) => void'.
Types of parameters 'resolver' and 'resolver' are incompatible.
Type 'import("/Users/xxx/Projects/opensumi/app-desktop/node_modules/webpack/types").Resolver' is not assignable to type 'import("/Users/xxx/Projects/opensumi/app-desktop/node_modules/tsconfig-paths-webpack-plugin/lib/plugin.temp.types").Resolver'.
The types of 'options.plugins' are incompatible between these types.
Type 'Plugin[]' is not assignable to type 'Plugin[]'. Two different types with this name exist, but they are unrelated.
Type 'Plugin' is not assignable to type 'Plugin'. Two different types with this name exist, but they are unrelated.
Type '{ apply: (arg0: Resolver) => void; }' is not assignable to type 'Plugin'.
Type '{ apply: (arg0: import("/Users/xxx/Projects/opensumi/app-desktop/node_modules/webpack/types").Resolver) => void; }' is not assignable to type '{ apply: (arg0: import("/Users/xxx/Projects/opensumi/app-desktop/node_modules/tsconfig-paths-webpack-plugin/lib/plugin.temp.types").Resolver) => void; }'.
Types of property 'apply' are incompatible.
Type '(arg0: import("/Users/xxx/Projects/opensumi/app-desktop/node_modules/webpack/types").Resolver) => void' is not assignable to type '(arg0: import("/Users/xxx/Projects/opensumi/app-desktop/node_modules/tsconfig-paths-webpack-plugin/lib/plugin.temp.types").Resolver) => void'.
Types of parameters 'arg0' and 'arg0' are incompatible.
Type 'import("/Users/xxx/Projects/opensumi/app-desktop/node_modules/tsconfig-paths-webpack-plugin/lib/plugin.temp.types").Resolver' is not assignable to type 'import("/Users/xxx/Projects/opensumi/app-desktop/node_modules/webpack/types").Resolver'.
Types of property 'options' are incompatible.
Property 'extensionAlias' is missing in type 'ResolveOptions' but required in type 'ResolveOptionsTypes'.
66 new TsconfigPathsPlugin({
~~~~~~~~~~~~~~~~~~~~~~~~~
67 configFile: tsConfigPath,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 }),
~~~~~~~~
node_modules/webpack/types.d.ts:9620:2
9620 extensionAlias: ExtensionAliasOption[];
~~~~~~~~~~~~~~
'extensionAlias' is declared here.
[webpack-cli] Failed to load '/Users/xxx/Projects/opensumi/app-desktop/build/webpack.browser.config.ts' config
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.