Hi
Just downloaded latest version, and want to test, when I run gulp build in VS PM(Package manager Console), and got the error as below:
PM> gulp build
[[90m12:45:13[39m] Using gulpfile D:\ABP\ABPJQuery8.9\ABP\src\FWT.ABP.Web.Mvc\gulpfile.js
[[90m12:45:13[39m] Starting 'build'...
node.exe : [[90m12:45:25[39m] 'build' errored after 12 s
所在位置 C:\Users\andyf\AppData\Roaming\npm\gulp.ps1:15 字符: 3
+ & "node$exe" "$basedir/node_modules/gulp/bin/gulp.js" $args
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: ([[90m12:45:25...ored after 12 s:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
[[90m12:45:25[39m]
[31mSyntaxError[39m in plugin "[36mgulp-uglify-es[39m"
Message:
Unexpected token: punc (.)
Details:
filename: _KeyValueListManager.js
line: 113
col: 36
pos: 4251
domainEmitter: [object Object]
domainThrown: false
I'm using VS2019, and the node version is v13.11, installed gulp in MVC project locally:
PM> npm install gulp
npm : npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries.
Upgrade to fsevents 2.
所在位置 行:1 字符: 1
+ npm install gulp
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (npm WARN deprec... to fsevents 2.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
npm
WARN
optional
SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\chokidar\node_modules\fsevents):
npm
WARN
notsup
SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current:
{"os":"win32","arch":"x64"})
npm
WARN
[email protected] requires a peer of bootstrap@^3.1.1 but none is installed. You must install peer dependencies
yourself.
npm
WARN
[email protected] requires a peer of [email protected] but none is installed. You must install peer
dependencies yourself.
npm
WARN
[email protected] requires a peer of grunt@>=1.0.3 but none is installed. You must install peer dependencies
yourself.
npm
WARN
[email protected] No description
npm
WARN
[email protected] No repository field.
npm
WARN
[email protected] No license field.
+ [email protected]
removed 4 packages, updated 1 package and audited 707 packages in 27.901s
2 packages are looking for funding
run `npm fund` for details
found 10 vulnerabilities (4 low, 5 moderate, 1 high)
run `npm audit fix` to fix them, or `npm audit` for details
Is there anything wrong? I've done this for previous version before without any problem.
Thanks, Andy
6 Answer(s)
-
0
Thanks @andyfuw created an issue about it https://github.com/aspnetzero/aspnet-zero-core/issues/3356
-
0
I'm also getting this error - breaking deployments to production.
I don't get the error when running create-bundles gulp
-
0
@andyfuw - Did you find a workaround for this?
Is there a temprorary work around for this?
-
0
Publish works. npm run create-bundles works. npm run build craps out here:
let btnEdit = `#${_args.name}-list .alert-close .editBtn`; $(document).on('click', btnEdit, function () { let parent = $(this).closest(".alert"); let index = parent.attr("data-index"); let item = _keyValueItems[index]; manageEditMode(item?.key); });
in the file
_keyValueListManager.js
For diagnostic purposes only, I removed the ? from both item?key calls and it passed without issue - then failed on datatables when it used ??
-
0
For reference - fix is here ->
https://github.com/aspnetzero/aspnet-zero-core/commit/3f46dddff97d31bf03650acc6836e4b0de4e0a34
-
0
Thanks @marble68