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
After create new angular project (with apps preset), in main.ts:
import { enableProdMode } from '@angular/core';
import { bootstrapApplication } from '@angular/platform-browser';
import {
provideRouter,
withNonEnabledBlockingInitialNavigation,
} from '@angular/router';
import { AppComponent } from './app/app.component';
import { environment } from './environments/environment';
import { appRoutes } from './app/app.routes';
if (environment.production) {
enableProdMode();
}
bootstrapApplication(AppComponent, {
providers: [provideRouter(appRoutes, withEnabledBlockingInitialNavigation())],
}).catch((err) => console.error(err));
I got this error:
'"@angular/router"' has no exported member named 'withNonEnabledBlockingInitialNavigation'. Did you mean 'withEnabledBlockingInitialNavigation'?
Current Behavior
Expected Behavior
Steps to Reproduce
run: npx create-nx-workspace choose: apps.
Then install: yarn add @nrwl/angular.
Then generate new Angular application: yarn nx g @nrwl/angular:application nx-ui.
This issue may not be prioritized if details are not provided to help us reproduce the issue.
Failure Logs
Environment
> NX Report complete - copy this into the issue template
Node : 16.15.1
OS : darwin arm64
yarn : 1.22.19
nx : 14.8.6
@nrwl/angular : 15.0.0
@nrwl/cypress : 15.0.0
@nrwl/detox : Not Found
@nrwl/devkit : 15.0.0
@nrwl/esbuild : Not Found
@nrwl/eslint-plugin-nx : 15.0.0
@nrwl/expo : Not Found
@nrwl/express : Not Found
@nrwl/jest : 15.0.0
@nrwl/js : 15.0.0
@nrwl/linter : 15.0.0
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : 15.0.0
@nrwl/nx-cloud : Not Found
@nrwl/nx-plugin : Not Found
@nrwl/react : Not Found
@nrwl/react-native : Not Found
@nrwl/rollup : Not Found
@nrwl/schematics : Not Found
@nrwl/storybook : 15.0.0
@nrwl/web : Not Found
@nrwl/webpack : 15.0.0
@nrwl/workspace : 14.8.6
typescript : 4.8.4
---------------------------------------
Local workspace plugins:
---------------------------------------
Community plugins:
The text was updated successfully, but these errors were encountered:
After create new angular project (with apps preset), in main.ts:
I got this error:
Current Behavior
Expected Behavior
Steps to Reproduce
run:
npx create-nx-workspace
choose:apps
.Then install:
yarn add @nrwl/angular
.Then generate new Angular application:
yarn nx g @nrwl/angular:application nx-ui
.This issue may not be prioritized if details are not provided to help us reproduce the issue.
Failure Logs
Environment
The text was updated successfully, but these errors were encountered: