Open Closed

gulp buildDev error #10801


0
timmackey created

ANZ ver 8.5.0 (upgrading from 8.4.0) angular/.net Core

When building from the released 8.5.0 gulp behaves normally.

C:\Users\Tim\Documents\__ngTTMv850\ngTTM\angular>npm start

> abp-zero-template@8.5.0 start
> gulp buildDev && ng serve --host 0.0.0.0 --port 4200

[23:38:28] Using gulpfile ~\Documents\__ngTTMv850\ngTTM\angular\gulpfile.js
[23:38:28] Starting 'buildDev'...
Dynamic bundles are being created.
[23:39:29] Finished 'buildDev' after 1 min
WARNING: This is a simple server for use in testing or debugging Angular applications
locally. It hasn't been reviewed for security issues.

Binding this server to an open connection can result in compromising your application or
computer. Using a different host than the one passed to the "--host" flag might result in
websocket connection issues. You might need to use "--disableHostCheck" if that's the
case.

After migrating most files from 8.4.0 to 8.5.0 there comes a time when the weirdness begins. This error appears:

C:\Users\Tim\Documents\__ngTTMv850\ngTTM\angular>npm start

> abp-zero-template@8.5.0 start
> gulp buildDev && ng serve --host 0.0.0.0 --port 4200

[23:07:42] Using gulpfile ~\Documents\__ngTTMv850\ngTTM\angular\gulpfile.js
[23:07:42] Starting 'buildDev'...
[23:07:42] 'buildDev' errored after 62 ms
[23:07:42] Error: Invalid glob argument:
    at Gulp.src (C:\Users\Tim\Documents\__ngTTMv850\ngTTM\angular\node_modules\vinyl-fs\lib\src\index.js:20:11)
    at createStyleBundle (C:\Users\Tim\Documents\__ngTTMv850\ngTTM\angular\gulpfile.js:96:23)
    at createStyleBundles (C:\Users\Tim\Documents\__ngTTMv850\ngTTM\angular\gulpfile.js:84:13)
    at buildDev (C:\Users\Tim\Documents\__ngTTMv850\ngTTM\angular\gulpfile.js:129:22)
    at taskWrapper (C:\Users\Tim\Documents\__ngTTMv850\ngTTM\angular\node_modules\undertaker\lib\set-task.js:13:15)
    at bound (node:domain:421:15)
    at runBound (node:domain:432:12)
    at asyncRunner (C:\Users\Tim\Documents\__ngTTMv850\ngTTM\angular\node_modules\async-done\index.js:55:18)
    at processTicksAndRejections (node:internal/process/task_queues:78:11)

C:\Users\Tim\Documents\__ngTTMv850\ngTTM\angular>

I backed out the most recent change and the error still appears. I have reverted all the .json files and relevant *.module.ts filess to the original 8.5.0 release, and the error persists. In the past week I have started from scratch 3 times now in an attempt to identify the cause, all without success.

I reviewed issues #7423, #8592, and #8657. They did not contain a solution that worked for me.

Can you suggest what I might look for to be possible causes of this error? And how to recover, short of starting over?


9 Answer(s)
  • 0
    musa.demir created
    Support Team

    Hi timmackey Can you please check these steps https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Getting-Started-Angular#angular-application

  • 0
    timmackey created
    C:\Users\Tim\Documents\__ngTTMv850\ngTTM\angular>npm run create-dynamic-bundles
    
    > abp-zero-template@8.5.0 create-dynamic-bundles
    > gulp buildDev
    
    [17:17:55] Using gulpfile ~\Documents\__ngTTMv850\ngTTM\angular\gulpfile.js
    [17:17:55] Starting 'buildDev'...
    [17:17:55] 'buildDev' errored after 85 ms
    [17:17:55] Error: Invalid glob argument:
        at Gulp.src (C:\Users\Tim\Documents\__ngTTMv850\ngTTM\angular\node_modules\vinyl-fs\lib\src\index.js:20:11)
        at createStyleBundle (C:\Users\Tim\Documents\__ngTTMv850\ngTTM\angular\gulpfile.js:96:23)
        at createStyleBundles (C:\Users\Tim\Documents\__ngTTMv850\ngTTM\angular\gulpfile.js:84:13)
        at buildDev (C:\Users\Tim\Documents\__ngTTMv850\ngTTM\angular\gulpfile.js:129:22)
        at taskWrapper (C:\Users\Tim\Documents\__ngTTMv850\ngTTM\angular\node_modules\undertaker\lib\set-task.js:13:15)
        at bound (node:domain:421:15)
        at runBound (node:domain:432:12)
        at asyncRunner (C:\Users\Tim\Documents\__ngTTMv850\ngTTM\angular\node_modules\async-done\index.js:55:18)
        at processTicksAndRejections (node:internal/process/task_queues:78:11)
    
    C:\Users\Tim\Documents\__ngTTMv850\ngTTM\angular>
    
  • 0
    ismcagdas created
    Support Team

    Hi @timmackey

    Could you run yarn gulp buildDev and see if it shows a different error message ?

  • 0
    timmackey created

    The error has vanished as quickly as it appeared. For no appearant reason. I would like to keep this ticket open for a while with the expectation that thet error could re-appear. For no appearant reason.

  • 0
    ismcagdas created
    Support Team

    Hi @timmackey

    Thank you for the update, sure we can leave this open.

  • 0
    timmackey created

    The error has returned. Can not build the unaltered v8.4.0 download of my project. Here's the response to your most recent request:

    
    C:\Users\Tim\Documents\_ngTTMv840_ANZ\ngTTM\angular> yarn gulp buildDev
    yarn run v1.22.15
    $ C:\Users\Tim\Documents\_ngTTMv840_ANZ\ngTTM\angular\node_modules\.bin\gulp buildDev
    [13:00:55] Using gulpfile ~\Documents\_ngTTMv840_ANZ\ngTTM\angular\gulpfile.js
    [13:00:55] Starting 'buildDev'...
    [13:00:55] 'buildDev' errored after 83 ms
    [13:00:55] Error: Invalid glob argument:
        at Gulp.src (C:\Users\Tim\Documents\_ngTTMv840_ANZ\ngTTM\angular\node_modules\vinyl-fs\lib\src\index.js:20:11)
        at createStyleBundle (C:\Users\Tim\Documents\_ngTTMv840_ANZ\ngTTM\angular\gulpfile.js:96:23)
        at createStyleBundles (C:\Users\Tim\Documents\_ngTTMv840_ANZ\ngTTM\angular\gulpfile.js:84:13)
        at buildDev (C:\Users\Tim\Documents\_ngTTMv840_ANZ\ngTTM\angular\gulpfile.js:129:22)
        at taskWrapper (C:\Users\Tim\Documents\_ngTTMv840_ANZ\ngTTM\angular\node_modules\undertaker\lib\set-task.js:13:15)
        at bound (node:domain:421:15)
        at runBound (node:domain:432:12)
        at asyncRunner (C:\Users\Tim\Documents\_ngTTMv840_ANZ\ngTTM\angular\node_modules\async-done\index.js:55:18)
        at processTicksAndRejections (node:internal/process/task_queues:78:11)
    error Command failed with exit code 1.
    info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
    
    C:\Users\Tim\Documents\_ngTTMv840_ANZ\ngTTM\angular>
    
  • 0
    timmackey created

    Uninstalled and re-installed yarn and gulp. Rebooted multiple times. Ran 'yarn' on unaltered version 8.4.0 download. This is the current state of my Windows development system:

    
    C:\Users\Tim\Documents\_ngTTMv840_ANZ\ngTTM\angular>yarn
    yarn install v1.22.17
    info No lockfile found.
    warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
    [1/4] Resolving packages...
    warning @microsoft/signalr > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
    warning @microsoft/signalr > request > har-validator@5.1.5: this library is no longer supported
    warning @microsoft/signalr > request > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
    warning primeng@8.1.4: Invalid configuration, use primeng-lts@8.1.x instead
    warning webdriver-manager > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
    warning @angular-devkit/build-angular > less > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
    warning @angular-devkit/build-angular > webpack-dev-server > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
    warning @angular-devkit/build-angular > webpack-dev-middleware > webpack-log > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
    warning @angular-devkit/build-angular > webpack-dev-server > sockjs > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
    warning @angular-devkit/build-angular > webpack-dev-server > chokidar > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
    warning @angular-devkit/build-angular > webpack-dev-server > url > querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
    warning @angular-devkit/build-angular > webpack > watchpack > watchpack-chokidar2 > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
    warning @angular-devkit/build-angular > webpack > micromatch > snapdragon > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
    warning @angular-devkit/build-angular > webpack > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
    warning @angular-devkit/build-angular > webpack > micromatch > snapdragon > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
    warning @angular-devkit/build-angular > webpack > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
    warning @angular/cli > ini@1.3.5: Please update to ini >=1.3.6 to avoid a prototype pollution issue
    warning @angular/cli > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
    warning @angular/cli > read-package-tree@5.3.1: The functionality that this package provided is now in @npmcli/arborist
    warning @angular/cli > universal-analytics > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
    warning @angular/cli > universal-analytics > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
    warning @angular/cli > @schematics/update > ini@1.3.5: Please update to ini >=1.3.6 to avoid a prototype pollution issue
    warning @angular/compiler-cli > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
    warning @types/moment-timezone@0.5.30: This is a stub types definition. moment-timezone provides its own type definitions, so you do not need this installed.
    warning gulp > glob-watcher > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
    warning postcss-url > mkdirp@0.5.0: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
    [2/4] Fetching packages...
    [3/4] Linking dependencies...
    warning " > @angular/core@8.2.14" has incorrect peer dependency "zone.js@~0.9.1".
    warning " > abp-ng2-module@5.2.0" has incorrect peer dependency "abp-web-resources@^5.2.0".
    warning " > karma-jasmine-html-reporter@1.7.0" has incorrect peer dependency "jasmine-core@>=3.8".
    [4/4] Building fresh packages...
    success Saved lockfile.
    Done in 416.18s.
    
    C:\Users\Tim\Documents\_ngTTMv840_ANZ\ngTTM\angular>npm start
    
    > abp-zero-template@8.4.0 start
    > gulp buildDev && ng serve --host 0.0.0.0 --port 4200
    
    [15:05:33] Using gulpfile ~\Documents\_ngTTMv840_ANZ\ngTTM\angular\gulpfile.js
    [15:05:33] Starting 'buildDev'...
    [15:05:33] 'buildDev' errored after 349 ms
    [15:05:33] Error: Invalid glob argument:
        at Gulp.src (C:\Users\Tim\Documents\_ngTTMv840_ANZ\ngTTM\angular\node_modules\vinyl-fs\lib\src\index.js:20:11)
        at createStyleBundle (C:\Users\Tim\Documents\_ngTTMv840_ANZ\ngTTM\angular\gulpfile.js:96:23)
        at createStyleBundles (C:\Users\Tim\Documents\_ngTTMv840_ANZ\ngTTM\angular\gulpfile.js:84:13)
        at buildDev (C:\Users\Tim\Documents\_ngTTMv840_ANZ\ngTTM\angular\gulpfile.js:129:22)
        at taskWrapper (C:\Users\Tim\Documents\_ngTTMv840_ANZ\ngTTM\angular\node_modules\undertaker\lib\set-task.js:13:15)
        at bound (node:domain:421:15)
        at runBound (node:domain:432:12)
        at asyncRunner (C:\Users\Tim\Documents\_ngTTMv840_ANZ\ngTTM\angular\node_modules\async-done\index.js:55:18)
        at processTicksAndRejections (node:internal/process/task_queues:78:11)
    
    C:\Users\Tim\Documents\_ngTTMv840_ANZ\ngTTM\angular>gulp --version
    CLI version: 2.3.0
    Local version: 4.0.2
    
    C:\Users\Tim\Documents\_ngTTMv840_ANZ\ngTTM\angular>yarn --version
    1.22.17
    
    C:\Users\Tim\Documents\_ngTTMv840_ANZ\ngTTM\angular>ng --version
    
         _                      _                 ____ _     ___
        / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
       / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
      / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
     /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                    |___/
    
    
    Angular CLI: 8.3.29
    Node: 16.13.1
    OS: win32 x64
    Angular: 8.2.14
    ... animations, common, compiler, compiler-cli, core, forms
    ... platform-browser, platform-browser-dynamic, platform-server
    ... router
    
    Package                           Version
    -----------------------------------------------------------
    @angular-devkit/architect         0.803.29
    @angular-devkit/build-angular     0.803.29
    @angular-devkit/build-optimizer   0.803.29
    @angular-devkit/build-webpack     0.803.29
    @angular-devkit/core              8.3.29
    @angular-devkit/schematics        8.3.29
    @angular/cdk                      8.2.3
    @angular/cli                      8.3.29
    @ngtools/webpack                  8.3.29
    @schematics/angular               8.3.29
    @schematics/update                0.803.29
    rxjs                              6.6.7
    typescript                        3.4.5
    webpack                           4.39.2
    
    
    C:\Users\Tim\Documents\_ngTTMv840_ANZ\ngTTM\angular>
    
  • 0
    ismcagdas created
    Support Team

    Hi @timmackey

    The error message doesn't say which file is causing the problem. Is it possible to share your angular project with info@aspnetzero.com ? We can reproduce this and offer you a solution.

    Thanks,

  • 0
    timmackey created

    Project sent via email.