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
> [email protected] 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
> [email protected] 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?
14 Answer(s)
-
0
Hi timmackey Can you please check these steps https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Getting-Started-Angular#angular-application
-
0
C:\Users\Tim\Documents\__ngTTMv850\ngTTM\angular>npm run create-dynamic-bundles > [email protected] 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
Hi @timmackey
Could you run
yarn gulp buildDev
and see if it shows a different error message ? -
0
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
Hi @timmackey
Thank you for the update, sure we can leave this open.
-
0
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
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 > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 warning @microsoft/signalr > request > [email protected]: this library is no longer supported warning @microsoft/signalr > request > [email protected]: 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 [email protected]: Invalid configuration, use [email protected] instead warning webdriver-manager > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 warning @angular-devkit/build-angular > less > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 warning @angular-devkit/build-angular > webpack-dev-server > [email protected]: 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 > [email protected]: 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 > [email protected]: 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 > [email protected]: 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 > [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. warning @angular-devkit/build-angular > webpack > watchpack > watchpack-chokidar2 > [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. warning @angular-devkit/build-angular > webpack > micromatch > snapdragon > [email protected]: See https://github.com/lydell/source-map-resolve#deprecated warning @angular-devkit/build-angular > webpack > micromatch > snapdragon > source-map-resolve > [email protected]: https://github.com/lydell/resolve-url#deprecated warning @angular-devkit/build-angular > webpack > micromatch > snapdragon > source-map-resolve > [email protected]: See https://github.com/lydell/source-map-url#deprecated warning @angular-devkit/build-angular > webpack > micromatch > snapdragon > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated warning @angular/cli > [email protected]: Please update to ini >=1.3.6 to avoid a prototype pollution issue warning @angular/cli > [email protected]: 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 > [email protected]: The functionality that this package provided is now in @npmcli/arborist warning @angular/cli > universal-analytics > [email protected]: 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 > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 warning @angular/cli > @schematics/update > [email protected]: Please update to ini >=1.3.6 to avoid a prototype pollution issue warning @angular/compiler-cli > [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. warning @types/[email protected]: This is a stub types definition. moment-timezone provides its own type definitions, so you do not need this installed. warning gulp > glob-watcher > [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. warning postcss-url > [email protected]: 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/[email protected]" has incorrect peer dependency "zone.js@~0.9.1". warning " > [email protected]" has incorrect peer dependency "abp-web-resources@^5.2.0". warning " > [email protected]" 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 > [email protected] 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
Hi @timmackey
The error message doesn't say which file is causing the problem. Is it possible to share your angular project with [email protected] ? We can reproduce this and offer you a solution.
Thanks,
-
0
Project sent via email.
-
0
Project sent via email 2 days ago. Any progress?
-
0
Hi @timmackey
Our team is working on this issue to find the problem. In the mean time, could you try the following operations ?
- Delete node_modules folder and package-lock.json file. Then, install packages using
yarn
and see if it helps ? - If it doesn't, could you also delete node_modules folder and yarn.lock file and install packages using
yarn
and see if it helps ?
- Delete node_modules folder and package-lock.json file. Then, install packages using
-
0
Deleted node_modules folder, package-lock.json, and yarn.lock files. Ran
yarn
. Same response.C:\Users\Tim\Documents\__ngTTMv840\ngTTM\angular>npm start > [email protected] start > gulp buildDev && ng serve --host 0.0.0.0 --port 4200 [09:24:26] Using gulpfile ~\Documents\__ngTTMv840\ngTTM\angular\gulpfile.js [09:24:26] Starting 'buildDev'... [09:24:26] 'buildDev' errored after 77 ms [09:24:26] Error: Invalid glob argument: at Gulp.src (C:\Users\Tim\Documents\__ngTTMv840\ngTTM\angular\node_modules\vinyl-fs\lib\src\index.js:20:11) at createStyleBundle (C:\Users\Tim\Documents\__ngTTMv840\ngTTM\angular\gulpfile.js:96:23) at createStyleBundles (C:\Users\Tim\Documents\__ngTTMv840\ngTTM\angular\gulpfile.js:84:13) at buildDev (C:\Users\Tim\Documents\__ngTTMv840\ngTTM\angular\gulpfile.js:129:22) at taskWrapper (C:\Users\Tim\Documents\__ngTTMv840\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\ngTTM\angular\node_modules\async-done\index.js:55:18) at processTicksAndRejections (node:internal/process/task_queues:78:11) C:\Users\Tim\Documents\__ngTTMv840\ngTTM\angular>
package-lock.json file was not recreated.
-
0
Hi @timmackey
Can you please update your gulpFile.js with the latest version of if. It should solve the problem. https://github.com/aspnetzero/aspnet-zero-core/blob/dev/angular/gulpfile.js
-
0
Updating gulpFile.js with the latest version fixed my problem. Thank you. Now a different problem has arisen. See new ticket.