Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New created ng7-pre Project fails to compile due to directory with hashtag #483

Closed
1 of 3 tasks
HackXIt opened this issue Jun 17, 2019 · 1 comment
Closed
1 of 3 tasks
Labels
wrong repo Wrong repository for this issue

Comments

@HackXIt
Copy link

HackXIt commented Jun 17, 2019

I'm submitting a...

  • Bug report
  • Feature request
  • Documentation issue or request

Current behavior

After finished Execution of 'ng new ng7-pre' inside a directory involving '#' in the path, the project fails to compile because the directory cannot resolve the modules.

Expected behavior

「wdm」: Compiled successfully.

Minimal reproduction of the problem with instructions

Create a folder including the hashtag character. For example #Sample-Project
Inside the folder execute ng new ng7-pre
Angular Routing? Yes
Stylesheet format? Sass

Inside the .\ng7-pre\ folder execute npm start

Environment

Windows 10 x64



PS D:\#Sample-Project\ng7-pre> npm start

> ng7-pre@0.0.0 start D:\#Sample-Project\ng7-pre
> ng serve


Date: 2019-06-17T12:59:05.983Z
Hash: 1f917eb32c0676678e1a
Time: 3718ms
chunk {main} main.js, main.js.map (main) 1.88 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 119 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.08 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 16.3 kB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 327 kB [initial] [rendered]

ERROR in Could not resolve module D:/
ERROR in ./src/styles.sass (./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src??embedded!./node_modules/sass-loader/lib/loader.js??ref--13-3!./src/styles.sass)
Module build failed (from ./node_modules/sass-loader/lib/loader.js):
Unsupported operation: Cannot extract a file path from a URI with a fragment component
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
i 「wdm」: Failed to compile.

Others:

@sinedied
Copy link
Member

This issue should posted to angular/cli repository, there is nothing we can do here about it.

As a general good practice though, spaces and special characters should be avoided in paths on Windows as they often cause issues on this platform.

@sinedied sinedied added the wrong repo Wrong repository for this issue label Jun 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wrong repo Wrong repository for this issue
Projects
None yet
Development

No branches or pull requests

2 participants