GithubHelp home page GithubHelp logo

Comments (12)

joeyslack avatar joeyslack commented on April 20, 2024

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.

Zacknero avatar Zacknero commented on April 20, 2024

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.

joeyslack avatar joeyslack commented on April 20, 2024

@Zacknero Ah, I didn't even know that existed!

What does your ApplicationModule look like?

from ng-universal.

Zacknero avatar Zacknero commented on April 20, 2024

What does your ApplicationModule look like?

But the configuration on app module is not automatic after install?? Or is manual??

from ng-universal.

joeyslack avatar joeyslack commented on April 20, 2024

@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.

Zacknero avatar Zacknero commented on April 20, 2024

@joeyslack your solution don't work, you can see my example project
image

from ng-universal.

kamilmysliwiec avatar kamilmysliwiec commented on April 20, 2024

Please, provide a minimal repository which reproduces your issue.

from ng-universal.

Zacknero avatar Zacknero commented on April 20, 2024

My step indo exiting project:

  1. npm i -g @nestjs/cli
  2. nest new folder-name
  3. cd folder-name
  4. npm run start
  5. 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.

krunalm1992 avatar krunalm1992 commented on April 20, 2024

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.

kamilmysliwiec avatar kamilmysliwiec commented on April 20, 2024

This should be fixed with Angular 9

from ng-universal.

Zacknero avatar Zacknero commented on April 20, 2024

This should be fixed with Angular 9

Ok, if we are on oldest version this isn't solved!!

from ng-universal.

kamilmysliwiec avatar kamilmysliwiec commented on April 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.