Skip to content

Unable to build my project #8141

Closed

Description

@Venkat07S

Hi,
Im facing a error while im trying to run my project
ng serve
I have installed all prerequisite like CLI and nodejs.
Please help me in fixing

screenshot 31

Activity

  1. sboden commented on Oct 24, 2017

    @sboden

    You have a directory "C#Notes" ... remove the #.

  2. filipesilva commented on Oct 25, 2017

    @filipesilva
    Contributor

    @sboden is right that this is caused by the # character, but we should fix this on our side as it is due to file resolving logic in Angular.

  3. self-assigned this
    on Oct 25, 2017
  4. added
    help wantedLabel noting an issue which the team is looking for contribution from the community to fix
    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
    on Oct 25, 2017
  5. sboden commented on Oct 25, 2017

    @sboden

    I agree the code should be fixed... short-term work around would be to remove # from the directory name.

    If this issue is fixed, issue #8118 will also be fixed I think.

  6. sboden commented on Oct 25, 2017

    @sboden

    I debugged it, it ends up being in ngtools_impl.js which is in angular until v4.4.x and disappears in v5. So still have to check whether v5 is also affected.

    problem is following in Routedef:

    RouteDef.fromString = function (entry) {
        var split = entry.split('#');
        return new RouteDef(split[0], split[1] || null);
    };
    

    it gets passed e.g. "c:/projects/angular/c#notes/notes/src/app/app.module#AppModule", and the split() on # takes the wrong parts of the string.

    Following fixes it (it takes the part after the most right # and the whole part in front):

    RouteDef.fromString = function (entry) {
        var split = entry.split('#');
        return new RouteDef(split.slice(0, -1).join('#'), split.pop() || null);
    };
    
  7. angular-automatic-lock-bot commented on Sep 7, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  8. locked and limited conversation to collaborators on Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenteffort1: easy (hours)help wantedLabel noting an issue which the team is looking for contribution from the community to fixtype: bug/fix

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions