Error generating static site when adding lazy loading routes
See original GitHub issueError
Steps to reproduce
-
npx @angular/cli new ng-static --routing
-
ng generate universal --client-project ng-static
-
Create lazy route
-
ng build
-
ng run ng-static:server
-
npx angular-prerender
Issue Analytics
- State:
- Created 4 years ago
- Comments:20 (10 by maintainers)
Top Results From Across the Web
Resolving errors faced while implementing Lazy Loading with ...
I've been building a travel planning web application at www.awaynation.com with Angular 5. As it is a single-page application, it takes very ...
Read more >Static routing with React.lazy - Stack Overflow
I am getting the following error message when trying to lazy load static routes when using React.lazy. I am not sure where to...
Read more >Dynamic Import, Code Splitting, Lazy Loading, and Error ...
Try it. You will encounter the error: “Cannot find module with dynamic import.” This error comes from Webpack, which is used by Create...
Read more >React Static Web Apps Manage ChunkLoadErrors on ...
After looking at our solution, we can see that we are lazy loading the loader component which manages the promises, errors and retry...
Read more >A Guide on React Lazy Loading - Refine Dev
Steps we'll cover: What is lazy loading? What is React.lazy; Suspense; Catching Loading Errors; Route-based code-splitting; Component-based ...
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 Free
Top 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
Hi @mbaljeetsingh, I think I was wrong. Thanks to the help of @kroeder and the friendly people in the Angular.de Slack I’m pretty sure now that running a locally installed command only works on OS X. On Windows it either has to be installed globally or it should be used with npx.
I updated the README to reflect that.
Many thanks again for making me aware of this and please let me know if you run into any further issues.
Hi @mbaljeetsingh, I think I fixed the problem now. Using npx without any arguments like this
npx angular-prerender
should work again.Many thanks for making me aware of that bug. Please let me know if you notice any other issues.