Comments (12)
Maybe I'm missing something, since I don't use Angular anymore, but I don't see @nestjs listed on the ngadd page: https://ngadd.com/
Is this supposed to work?
from ng-universal.
Maybe I'm missing something, since I don't use Angular anymore, but I don't see @nestjs listed on the ngadd page: https://ngadd.com/
Is this supposed to work?
https://github.com/nestjs/ng-universal
from ng-universal.
@Zacknero Ah, I didn't even know that existed!
What does your ApplicationModule look like?
from ng-universal.
What does your ApplicationModule look like?
But the configuration on app module is not automatic after install?? Or is manual??
from ng-universal.
@Zacknero I'm sure there's someone around here who knows more than me, but based on https://github.com/nestjs/ng-universal you will have to set up your import in ApplicationModule, et la:
import { Module } from '@nestjs/common';
import { join } from 'path';
import { AngularUniversalModule } from '@nestjs/ng-universal';
@Module({
imports: [
AngularUniversalModule.forRoot({
viewsPath: join(process.cwd(), 'dist/browser'),
bundle: require('./../dist/server/main.js'),
}),
],
})
export class ApplicationModule {}
from ng-universal.
@joeyslack your solution don't work, you can see my example project
image
from ng-universal.
Please, provide a minimal repository which reproduces your issue.
from ng-universal.
My step indo exiting project:
- npm i -g @nestjs/cli
- nest new folder-name
- cd folder-name
- npm run start
- Error (40)
Error Console Log
@kamilmysliwiec what do you need?? I don't understand
I have created an empty repository on GitLab (private of company), cloned, created new nest folder and when run show this problem/error
internal/modules/cjs/loader.js:638
throw err;
Why?? I have searched on google and not have definite solution...
from ng-universal.
I got same error while using angular cli version 8.1.3. Just updated my angular cli to version 8.3.24 and it works as expected.
from ng-universal.
This should be fixed with Angular 9
from ng-universal.
This should be fixed with Angular 9
Ok, if we are on oldest version this isn't solved!!
from ng-universal.
Please, report this issue in the @angular/universal
repository. @nestjs/ng-universal
is now just a wrapper on @nguniversal/express-engine
which performs several minor modifications and nothing else.
from ng-universal.
Related Issues (20)
- Add support for Angular 16 HOT 1
- Missing domino dependency HOT 1
- Vulnerable reason to stay here with ^0.13.1 and not ^0.14.0 HOT 1
- errorHandler does not includes the request to be able to respond something.
- Prerender with standalone application don't work HOT 1
- Nestjs ng-universal package dependency errors HOT 6
- Support in Angular 17 HOT 6
- @nestjs/ng-universal not working with Angular 13 - Error [ERR_REQUIRE_ESM]: require() of ES Module HOT 4
- Angular 13 + ng add @nestjs/ng-universal --force (Package installed failed) HOT 2
- Can't resolve 'class-transformer/storage' HOT 2
- `npm run dev:ssr` fails to run on MacOS HOT 2
- TypeError: Class constructor Type cannot be invoked without 'new' - nest runtime error when using angular library + mikro orm HOT 7
- Please make cache methods asynchronous HOT 1
- That package not work HOT 1
- minimal app with "Error: Module parse failed" HOT 2
- Would really love to use this library with latest major nestjs version (v9) HOT 1
- [FR] Add community maintainers to this package HOT 3
- Collection "@nestjs/ng-universal" cannot be resolved HOT 1
- Angular 15 ng add dependency issue 'Packages installation failed' HOT 6
- Can't start or build server application HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng-universal.