-
Notifications
You must be signed in to change notification settings - Fork 645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
编译时在gulp-tsc上出错 #121
Comments
更新前文中出现的这一系列日志,实际上是因为新版本Electron暂不支持
更换 cnpm install @types/node@12.x 同时注意保持TypeScript为 于是,新的编译错误出现了。。。
|
最后一弹。。刚刚猛然发现思来想去,还是参考下最新版release。用 ...
"devDependencies": {
"@babel/core": "^7.1.2",
"@types/byline": "^4.2.31",
"browserify": "^16.2.3",
"del": "^3.0.0",
"electron": "^3.0.11",
"electron-packager": "^12.2.0",
"electron-prebuilt": "^1.4.13",
"grunt": "^1.0.3",
"grunt-electron-installer": "^2.1.0",
"gulp": "^3.9.1",
"gulp-autoprefixer": "^6.0.0",
"gulp-babel": "^8.0.0",
"gulp-cache": "^1.0.2",
"gulp-clean-css": "^3.10.0",
"gulp-concat": "^2.6.1",
"gulp-connect": "^5.6.1",
"gulp-filter": "^5.1.0",
"gulp-imagemin": "^4.1.0",
"gulp-jshint": "^2.1.0",
"gulp-livereload": "^4.0.0",
"gulp-main-bower-files": "^1.6.3",
"gulp-minify-css": "^1.2.4",
"gulp-notify": "^3.2.0",
"gulp-obfuscate": "^0.2.9",
"gulp-rename": "^1.4.0",
"gulp-ruby-sass": "^3.0.0",
"gulp-tsc": "^1.3.2",
"gulp-uglify": "^3.0.1",
"js-beautify": "^1.8.6",
"jshint": "^2.9.6",
"run-sequence": "^2.2.1",
"tsify": "^4.0.1",
"typescript": "^3.2.2",
"vinyl-source-stream": "^2.0.0",
"wiredep": "^4.0.0"
},
"dependencies": {
"hotkeys-js": "^3.3.8",
"moment": "^2.23.0",
"winston": "^3.1.0"
}
...
其中Electron居然是
果然顺利编译! 最后运行测试。再在工程 @@ -5,6 +5,7 @@
"main": "dist/main.js",
"scripts": {
"start": "gulp default",
+ "demo": "electron .",
"packwin32": "cross-var electron-packager ./ DesktopNaotu --asar --platform=win32 --arch=ia32 --out=../OutApp --icon=app/static/favicon.ico --electron-version=3.0.10 --app-version=$npm_package_version --ignore=\"(.git|screenshot|doc|src|app|bower_components|electron-packager)\" --overwrite --prune",
"packwin32dev": "cross-var electron-packager ./ DesktopNaotu --platform=win32 --arch=ia32 --out=../OutApp --icon=app/static/favicon.ico --electron-version=3.0.10 --app-version=$npm_package_version --ignore=\"(.git|screenshot|doc|bower_components|electron-packager)\" --overwrite --prune",
"packwin64": "cross-var electron-packager ./ DesktopNaotu --asar --platform=win32 --arch=x64 --out=../OutApp --icon=app/static/favicon.ico --electron-version=3.0.10 --app-version=$npm_package_version --ignore=\"(.git|screenshot|doc|src|app|bower_components|electron-packager)\" --overwrite --prune", 然后
成功运行了起来! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
系统环境
编译步骤
cnpm install
、bower install
安装所有依赖npm run start
开始编译@^4.2
,否则报错。在9.0版本Node.js中该组件不存在此问题,可忽略。配置文件
走弯路了。。。package.json
。直接npm install
安装全部依赖,不再逐一安装。最终两系统都出现了同样的编译错误。
结果卡在这地方。。。
The text was updated successfully, but these errors were encountered: