facebook

issues running Angluar CLI

  1. CodeMix & Angular IDE
  2.  > 
  3. Getting Help
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #609271 Reply

    ignaciom
    Moderator

    I am trying to run Angular CLI in the servers tab. the application runs but when load the page i get the following errors.

    1THi3Qi2dkNvQq83gsjJSz:22 Not allowed to load local resource: file:///C:/Users//.codemix-store/git-bash/sos/assets/svg/mylogo.svg

    Using angular IDE to run with custom base-href:

    node_modules/.bin/ng serve –proxy-config=proxy.conf.local.js –environment=local –dev –port=4201 –base-href=/sos/ –deploy-url=/sos/ –verbose

    #609275 Reply

    Hey,
    This problem seems to be related to how git bash deals with paths, you can find more about this issue here: https://github.com/angular/angular-cli/issues/5606.

    We will investigate a solution to deal with this problem.
    As workaround you can invoke run your application like this:

    MSYS2_ARG_CONV_EXCL="--base-href;--deploy-url" node_modules/angular-ide/bin/ng serve --proxy-config proxy.conf.local.js --environment=local --dev --port=4201 --base-href=/sos/ --deploy-url=/sos/

    Or to use with a script named local:

    MSYS2_ARG_CONV_EXCL="--base-href;--deploy-url" npm run local -- --base-href=/sos/ --deploy-url=/sos/

    Let us know how it works.

    Cheers,
    Sal

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: issues running Angluar CLI

You must be logged in to post in the forum log in