question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to setup with angular 10

See original GitHub issue

I’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.
  • 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:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
anvialcommented, Jul 20, 2020

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…

1reaction
muhammad-usman-anwarcommented, Jul 17, 2020

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found