Unable to setup with angular 10
See original GitHub issueI’m submitting a…
[ ] Regression
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
- The
ng add @nestjs/ng-universal
results inconsistent behavior in Windows and wsl.- In Windows the
src/main.server.ts
has unused imports. - In wsl it does not have such behavior.
- In Windows the
- ERROR: upon running server(weather in using in development or production) results in error of can’t find indexOf of undefined in part where ngUniversal is fetching factory or something.
Expected behavior
- Should work just fine
Minimal reproduction of the problem with instructions
__ ALL testing was done after creating a new angular app using ng new
, with both yarn
| npm
__
- create new app, something like
ng new ng-app
- then
ng add @nestjs/ng-universal
- then
npm run serve
|yarn serve
- upon opening http://localhost:4200, throws error
Environment
Angular version: 10.0.0
Nest version: 6.11.11 (this is from lock file, set by the plugin is 6.0.0)
For Tooling issues:
- Node version: 12.18.1
- Platform: Windows 10 Version 2004 | Also tested on WSL 2
Issue Analytics
- State:
- Created 3 years ago
- Reactions:7
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Unable to run angular material with angular 10 - Stack Overflow
I am using the latest version of angular, which is angular 10 and unable to import any material components. As soon as I...
Read more >I was unable to setup my Sitecore 10.2 Angular app using ...
The above issue is a Sitecore bug, creating a new Sitecore angular app fails with the latest NPM version. The error occurs when...
Read more >Identify and Fix Build and Deployment Errors in Your Angular ...
In this guide, you will learn how to spot some of the most common build and deployment errors and how to resolve them...
Read more >Unable to execute Angular CLI commands in Visual Studio ...
In this video , I am going to fix that error : Unable to execute Angular CLI commands in Visual Studio Code terminalWhen...
Read more >ng serve not working when install latest version of angular cli
Repro steps. Was this an app that wasn't created using the CLI? What change did you do on your code? etc. The log...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s pity, I’d like to integrate NestJs backend to my angular10 app. But downgrade angular to 9 is not the answer. Will be waiting for advises, or updates…
@anvial Nothing worked I tried a lot of things, even tried to fix/copy the way how the angular’s own universal package is setup