Giter Site home page Giter Site logo

Comments (8)

gabra666 avatar gabra666 commented on August 20, 2024 1

Hi, this is a common error while using the newest yeoman generator for dot net core angular SPA, you can find some solutions in this thread:

https://www.udemy.com/aspnet-core-angular/learn/v4/questions/2334464

check my answer I hope it helps :)

from vega.

muyiwa avatar muyiwa commented on August 20, 2024

same here....

from vega.

dani32112 avatar dani32112 commented on August 20, 2024

Thanks gabra666 for your response will you please elaborate the answer here i don't have access to this course i am just searching for solution and paste my issue here kindly help me out

from vega.

gabra666 avatar gabra666 commented on August 20, 2024

Hi the problem you hare having is because the Angular CLI expects to find a file that follows this convention X.module.ts - but you have 3 modules there, and neither of these follow that convention (app.module.client.ts, app.module.server.ts and app.module.shared.ts) I think this was a decision to separate angular client and server dependencies.

The solution I found is just 3 steps

  1. rename app.module.client.ts to app.client.module.ts
  2. open this file and replace the declarations : sharedConfig.declarations with declarations :
    [...sharedConfig.declarations]
  3. Modify the reference to this file in boot-client.ts - import { AppModule} from './app/app.client.module';

Let me know if this works.

from vega.

dani32112 avatar dani32112 commented on August 20, 2024

gabra666 bro this directory path'./app/app.client.module'; is not working giving error.

from vega.

dani32112 avatar dani32112 commented on August 20, 2024

gabra666 bro! its still giving the same error

from vega.

dani32112 avatar dani32112 commented on August 20, 2024

Thanks a lot bro its working fine i misspelled little

from vega.

dani32112 avatar dani32112 commented on August 20, 2024

gabra666 bro if you don't mind can you send me your email or any other source so i can take your help if i need because i new to learn this technology i shall be very thankful to you.

from vega.

Related Issues (13)

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.