Giter VIP home page Giter VIP logo

app-desktop's People

Contributors

bytemain avatar dependabot[bot] avatar erha19 avatar perfectpan avatar yantze avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

app-desktop's Issues

安装完项目后,启动报错

使用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
希望能给出解决办法

构建执行pack:prod命令报错

  1. 执行yarn run pack:prod报错,提示scripts/pack.js中缺少product.json文件
  2. 自行补齐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.

执行构建build命令报错

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

项目启动报错!

我用mac电脑运行yarn命令项目报错,然后又用window电脑,还是报错,但同样环境下,ide-electron项目就正常启动,我花了一天尝试了一些方法,但仍然无法解决,报错内容如下:
image
image
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.