You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the --prod is no longer needed as the library is always build in AOT mode and without the --prod it does clean the previous files as well.
Error
Error when trying to deploy:
Error: Configuration 'production' is not set in the workspace.
at WorkspaceNodeModulesArchitectHost.getOptionsForTarget (/Developer/Work/SPA/ngx-starter-kit/node_modules/@angular-devkit/architect/node/node-modules-architect-host.js:72:19)
at ArchitectTargetJobRegistry.get (/Developer/Work/SPA/ngx-starter-kit/node_modules/@angular-devkit/architect/src/architect.js:155:24)
at MergeMapSubscriber.project (/Developer/Work/SPA/ngx-starter-kit/node_modules/@angular-devkit/core/src/experimental/jobs/fallback-registry.js:23:81)
at MergeMapSubscriber._tryNext (/Developer/Work/SPA/ngx-starter-kit/node_modules/@angular-devkit/core/node_modules/rxjs/internal/operators/mergeMap.js:69:27)
at MergeMapSubscriber._next (/Developer/Work/SPA/ngx-starter-kit/node_modules/@angular-devkit/core/node_modules/rxjs/internal/operators/mergeMap.js:59:18)
at MergeMapSubscriber.Subscriber.next (/Developer/Work/SPA/ngx-starter-kit/node_modules/@angular-devkit/core/node_modules/rxjs/internal/Subscriber.js:66:18)
at Observable._subscribe (/Developer/Work/SPA/ngx-starter-kit/node_modules/@angular-devkit/core/node_modules/rxjs/internal/util/subscribeToArray.js:5:20)
at Observable._trySubscribe (/Developer/Work/SPA/ngx-starter-kit/node_modules/@angular-devkit/core/node_modules/rxjs/internal/Observable.js:44:25)
at Observable.subscribe (/Developer/Work/SPA/ngx-starter-kit/node_modules/@angular-devkit/core/node_modules/rxjs/internal/Observable.js:30:22)
at MergeMapOperator.call (/Developer/Work/SPA/ngx-starter-kit/node_modules/@angular-devkit/core/node_modules/rxjs/internal/operators/mergeMap.js:39:23)
ng new my-project --create-application false
ng generate library my-lib
ng generate application my-app
ng add ngx-deploy-npm
ng deploy my-lib --dry-run
The text was updated successfully, but these errors were encountered:
Yeah, your are right, we do not need to compile on production an angular package, there is no such thing on building a package in production mode.
The reasons what I set that:
I use Nx to build packages and when you run affected:build --prod (I use it a lot on the CI to check PR's) if you don't have the production environment your build is going to fail
The deployer starter is compiling by default in production
But thank you for reporting me this issue... I'm going to fix it right now...
For a quick fix until the path is done, just add a production environment in your angular.json
my repo: https://github.com/xmlking/ngx-starter-kit
when I run
I am getting error.
according to angular/angular-cli#12290
Error
my lib module in angular.json
How to reproduce
ng new my-project --create-application false ng generate library my-lib ng generate application my-app ng add ngx-deploy-npm ng deploy my-lib --dry-run
The text was updated successfully, but these errors were encountered: