angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

ng add @angular/pwa doesn't work correctly in angular-cli 6.2.5 (Maximum call stack size exceeded)

Open christianmorante opened this issue 8 years ago • 25 comments

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Command (mark with an x)

- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [x] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions

Angular CLI: 6.2.5 Node: 8.11.3 OS: win32 x64 Angular: 6.1.10 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-dynamic, router

Package Version

@angular-devkit/architect 0.8.5 @angular-devkit/build-angular 0.8.5 @angular-devkit/build-optimizer 0.8.5 @angular-devkit/build-webpack 0.8.5 @angular-devkit/core 0.8.5 @angular-devkit/schematics 0.8.5 @angular/cdk 6.4.7 @angular/cli 6.2.5 @angular/material 6.4.7 @angular/pwa 0.10.5 @ngtools/webpack 6.2.5 @schematics/angular 0.8.5 @schematics/update 0.8.5 rxjs 6.2.2 typescript 2.9.2 webpack 4.20.2

Repro steps

ng new pwademo ng add @angular/material ng build --prod ng add @angular/pwa

The log given by the failure

Installing packages for tooling via npm. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

  • @angular/[email protected] updated 1 package in 47.645s Installed packages for tooling via npm. Maximum call stack size exceeded

Desired functionality

The command doesnt add automatically PWA features to my Angular application such as manifest file or icons in assets folder or edit my index.html file with reference to manifest, only show me the error message Maximum call stack size exceeded

Mention any other details that might be useful

christianmorante avatar Nov 09 '18 20:11 christianmorante

Fixed via https://github.com/angular/angular-cli/pull/13286

alan-agius4 avatar Jan 21 '19 09:01 alan-agius4

~~@alan-agius4 It's not fixed, can you please reopen the issue ?~~

~~Just updated to @angular/cli:7.2.3 and the error is still here. I've also deleted the node_modules directory and it still fails the same way.~~

Nevermind, I updated my global cli but didn't noticed the project was using an older one installed locally. Bumped both it's working fine now. Sorry for the trouble.

nreynis avatar Jan 29 '19 09:01 nreynis

I'm having the same issue. I was able to get it to work by specifying the previous stable release: ng add @angular/[email protected] --project my-project-name

it seems to work, thnk u

cnscorpions avatar Mar 23 '19 16:03 cnscorpions

@jakawell muchas gracias. Me funciono (y)

MayumyCH avatar Aug 07 '19 15:08 MayumyCH

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.