Base solution for your next web application
Open Closed

Gulp build error with ASP.NET Core MVC + JQuery v8.9 #9155


User avatar
0
andyfuw created

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
[12:45:13] Using gulpfile D:\ABP\ABPJQuery8.9\ABP\src\FWT.ABP.Web.Mvc\gulpfile.js
[12:45:13] Starting 'build'...
node.exe : [12:45:25] '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: ([12:45:25...ored after 12 s:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
[12:45:25] 
SyntaxError in plugin "gulp-uglify-es"
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)
  • User Avatar
    0
    musa.demir created

    Thanks @andyfuw created an issue about it https://github.com/aspnetzero/aspnet-zero-core/issues/3356

  • User Avatar
    0
    marble68 created

    I'm also getting this error - breaking deployments to production.

    I don't get the error when running create-bundles gulp

  • User Avatar
    0
    marble68 created

    @andyfuw - Did you find a workaround for this?

    Is there a temprorary work around for this?

  • User Avatar
    0
    marble68 created

    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 ??

  • User Avatar
    0
    marble68 created
  • User Avatar
    0
    musa.demir created

    Thanks @marble68