Base solution for your next web application
Open Closed

Tried to find bootstrap code, but could not. #2285


User avatar
0
sampath created

Hi,

When I try to run the client project, it gives below error.Can you tell me why ? Server project is working fine.


8 Answer(s)
  • User Avatar
    0
    mysterio21troy created

    Had the same issue as you, its mainly because of the angular-cli latest beta is still having issues.

    The current build from ABP is confirmed to work with angular-cli 1.0.0-beta.17

    If you wish to make it work, can do this:

    npm install -g rimraf
    rimraf node_modules
    

    Open up the project.json in the root of the angular abp app, and change

    "angular-cli": "^1.0.0-beta.17",
    

    to

    "angular-cli": "1.0.0-beta.17",
    

    then run

    npm i
    npm start
    

    This will force the usage of angular-cli to be the version that works with abp, probably better until it comes out of BETA.

  • User Avatar
    0
    sampath created

    Hi mysterio21troy,

    Thanks a lot.That was the issue.My cli version was ^1.0.0-beta.24 .Still it's having issues :( I have changed as you mentioned and now it is working fine :)

    I would like to ask few questions from you :

    1. Can you tell me about your development environment with latest abp ? Are you using 2 instances of VS 2015 or what ? Using 2 instances of VS has been killed the performance of my machine :(

    2. How you're publishing the app ? We can publish core project to azure.But what about client thing ? Unable to find out the information about these things on the latest abp doc yet.Please provide us your real experience with this.Thanks.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    For the first problem you can check this issue <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-angular/issues/12">https://github.com/aspnetzero/aspnet-ze ... /issues/12</a>. We also updated the template, if you download a new project fron aspnetzero.com, it will not have this problem.

    In order to deploy angular2 client, first you need to build it with angular-cli, see <a class="postlink" href="https://github.com/angular/angular-cli#creating-a-build">https://github.com/angular/angular-cli#creating-a-build</a>. Then you will have files in dist folder. You can deploy those files to your server.

  • User Avatar
    0
    sampath created

    Hi ismcagdas,

    I don't have permission on Git Repo. Can you please allow me ?

  • User Avatar
    0
    ismcagdas created
    Support Team

    You are invited as Sampath-Lokuge, can you try again ?

  • User Avatar
    0
    sampath created

    Hi ismcagdas,

    Thanks a lot.Now I can access it :)

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @sampath,

    We completed the document for merging AspNet Core & Angular 2.x solutions. You can take a look at it here <a class="postlink" href="https://aspnetzero.com/Documents/Merge-Angular-Client-Server">https://aspnetzero.com/Documents/Merge- ... ent-Server</a>.

    We will appreciate your feedback :)

  • User Avatar
    0
    sampath created

    Hi ismcagdas,

    Awesome ! Thanks a lot.I'll try that and will let you know :)