qld-cf / electron-react-tpl Goto Github PK
View Code? Open in Web Editor NEWelectron12 + umi3.2 + typescript react 16.12 + redux + antDesign 4.0 + eslint tslint react-tslint脚手架, 下载即用,仅供学习参考
electron12 + umi3.2 + typescript react 16.12 + redux + antDesign 4.0 + eslint tslint react-tslint脚手架, 下载即用,仅供学习参考
[electron] scripts/main-build.js � Electron webpack 相关报错
[electron] TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
[electron] at validateString (internal/validators.js:117:11)
[electron] at Object.join (path.js:375:7)
[electron] at D:\moushi\desktop_im\scripts\main-build.js:32:13
[electron] at Hook.eval [as callAsync] (eval at create (D:\moushi\desktop_im\node_modules\tapable\lib\HookCodeFactory.js:33:10), :7:1)
[electron] at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (D:\moushi\desktop_im\node_modules\tapable\lib\Hook.js:18:14)
[electron] at D:\moushi\desktop_im\node_modules\webpack\lib\Compiler.js:1114:33
[electron] at finalCallback (D:\moushi\desktop_im\node_modules\webpack\lib\Compilation.js:2249:11)
[electron] at D:\moushi\desktop_im\node_modules\webpack\lib\Compilation.js:2540:11
[electron] at Hook.eval [as callAsync] (eval at create (D:\moushi\desktop_im\node_modules\tapable\lib\HookCodeFactory.js:33:10), :4:1)
[electron] at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (D:\moushi\desktop_im\node_modules\tapable\lib\Hook.js:18:14) {
[electron] code: 'ERR_INVALID_ARG_TYPE'
[electron] }
[electron] scripts/main-build.js Watching Ended.
load thirdpart node addon failed
Module parse failed: Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
代码暴露太多了,最好可以做成一个plugin,在umi 中做集成。这样的受众用户可能会更多一些
npm run start 出错
[umi] api.addDepInfo is not a function
[umi] TypeError: api.addDepInfo is not a function
⨯ open F:\patent-service-ui-electron\node_modules\umi\node_modules@umijs\preset-built-in\node_modules\joi2types\node_modules\json-schema-to-typescript\node_modules\cli-color\node_modules\memoizee\node_modules\event-emitter\node_modules\es5-ext\node_modules\es6-iterator\node_modules\d\node_modules\es5-ext\node_modules\es6-iterator\node_modules\d\node_modules\es5-ext\node_modules\es6-iterator\node_modules\d\node_modules\es5-ext\node_modules\es6-iterator\node_modules\d\node_modules\es5-ext\node_modules\es6-iterator\node_modules\d\node_modules\es5-ext\node_modules\es6-iterator\node_modules\d\node_modules\es5-ext\node_modules\es6-iterator\node_modules\d\node_modules\es5-ext\node_modules\es6-iterator\node_modules\d\node_modules\es5-ext\package.json: The name of the file cannot be resolved by the system.
github.com/develar/app-builder/pkg/node-modules.(*Collector).resolveDependency
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:192
github.com/develar/app-builder/pkg/node-modules.(*Collector).processDependencies
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:95
github.com/develar/app-builder/pkg/node-modules.(*Collector).readDependencyTree
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:56
github.com/develar/app-builder/pkg/node-modules.(*Collector).readDependencyTree
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72
github.com/develar/app-builder/pkg/node-modules.(*Collector).readDependencyTree
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72
github.com/develar/app-builder/pkg/node-modules.(*Collector).readDependencyTree
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72
github.com/develar/app-builder/pkg/node-modules.(*Collector).readDependencyTree
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72
github.com/develar/app-builder/pkg/node-modules.(*Collector).readDependencyTree
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72
github.com/develar/app-builder/pkg/node-modules.(*Collector).readDependencyTree
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72
github.com/develar/app-builder/pkg/node-modules.(*Collector).readDependencyTree
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72
github.com/develar/app-builder/pkg/node-modules.(*Collector).readDependencyTree
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72
github.com/develar/app-builder/pkg/node-modules.(*Collector).readDependencyTree
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72
github.com/develar/app-builder/pkg/node-modules.(*Collector).readDependencyTree
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72
github.com/develar/app-builder/pkg/node-modules.(*Collector).readDependencyTree
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72
github.com/develar/app-builder/pkg/node-modules.(*Collector).readDependencyTree
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72
github.com/develar/app-builder/pkg/node-modules.(*Collector).readDependencyTree
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72
github.com/develar/app-builder/pkg/node-modules.(*Collector).readDependencyTree
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72
github.com/develar/app-builder/pkg/node-modules.(*Collector).readDependencyTree
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72
github.com/develar/app-builder/pkg/node-modules.(*Collector).readDependencyTree
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72
github.com/develar/app-builder/pkg/node-modules.(*Collector).readDependencyTree
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72
github.com/develar/app-builder/pkg/node-modules.(*Collector).readDependencyTree
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72
github.com/develar/app-builder/pkg/node-modules.(*Collector).readDependencyTree
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72
github.com/develar/app-builder/pkg/node-modules.(*Collector).readDependencyTree
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72
github.com/develar/app-builder/pkg/node-modules.(*Collector).readDependencyTree
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72
github.com/develar/app-builder/pkg/node-modules.(*Collector).readDependencyTree
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72
github.com/develar/app-builder/pkg/node-modules.(*Collector).readDependencyTree
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72
github.com/develar/app-builder/pkg/node-modules.(*Collector).readDependencyTree
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72
github.com/develar/app-builder/pkg/node-modules.(*Collector).readDependencyTree
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72
github.com/develar/app-builder/pkg/node-modules.(*Collector).readDependencyTree
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72
github.com/develar/app-builder/pkg/node-modules.(*Collector).readDependencyTree
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72
github.com/develar/app-builder/pkg/node-modules.(*Collector).readDependencyTree
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72
github.com/develar/app-builder/pkg/node-modules.(*Collector).readDependencyTree
Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72
⨯ F:\patent-service-ui-electron\node_modules_app-builder-bin@3.5.10@app-builder-bin\win\x64\app-builder.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE stackTrace=
Error: F:\patent-service-ui-electron\node_modules_app-builder-bin@3.5.10@app-builder-bin\win\x64\app-builder.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
webpack.main.js中对.node文件写了单独的loader:打包后的应用从/aclas-addons
路径引用对应的模块
求教项目中的.node文件是怎么打包至/aclas-addons
路径的呢?
win10 + wsl2(ubuntu 20.04) + x410
会一直抛同一个错误
报错信息:
[umi] (node:739) 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: 97)
[umi] (node:739) UnhandledPromiseRejectionWarning: AssertionError [ERR_ASSERTION]: chunk of umi not found.
[umi] at /home/saltfish/dkgy/maple-electron/node_modules/@umijs/preset-built-in/lib/plugins/commands/htmlUtils.js:104:27
[umi] at Array.forEach (<anonymous>)
[umi] at chunksToFiles (/home/saltfish/dkgy/maple-electron/node_modules/@umijs/preset-built-in/lib/plugins/commands/htmlUtils.js:93:14)
[umi] at /home/saltfish/dkgy/maple-electron/node_modules/@umijs/preset-built-in/lib/plugins/commands/htmlUtils.js:188:32
[umi] at Generator.next (<anonymous>)
[umi] at asyncGeneratorStep (/home/saltfish/dkgy/maple-electron/node_modules/@umijs/preset-built-in/lib/plugins/commands/htmlUtils.js:62:103)
[umi] at _next (/home/saltfish/dkgy/maple-electron/node_modules/@umijs/preset-built-in/lib/plugins/commands/htmlUtils.js:64:194)
[umi] at runMicrotasks (<anonymous>)
[umi] at processTicksAndRejections (internal/process/task_queues.js:97:5)
增量更新为什么在最后finally中还需要将back给改回来
主进程怎么是js
🐶🌞滴,拉下来不能用,快点更新
我增量更新的事后不能够修改resource/app的名字为.back,有遇到过吗?
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.