Skip to content

Invalid project build when project path includes symlink #3797

Closed
@drakulis

Description

@drakulis

OS?

Windows 7

Versions.

angular-cli: 1.0.0-beta.24
node: 6.5.0
os: win32 ia32
@angular/common: 2.4.1
@angular/compiler: 2.4.1
@angular/core: 2.4.1
@angular/forms: 2.4.1
@angular/http: 2.4.1
@angular/platform-browser: 2.4.1
@angular/platform-browser-dynamic: 2.4.1
@angular/router: 3.4.1
@angular/compiler-cli: 2.4.1

npm: 3.10.3

Repro steps.

  • create symbolic link to folder using mklink command, eg.
    mklink D:\workspace-link R:\workspace /J
    where
    R:\workspace is a phisical folder
    D:\workspace-link is a symbolic link which pointing to R:\workspace
    /J is a switch indicating that it has to be folder link
  • navigate to R:\workspace
  • execute ng new test-project
  • cd test-project
  • set some global styles (eg. body { background-color: #99ff99; } ) in src/styles.css
  • ng serve

project run perfectly fine, global styles are applied in application. Now run the project through symlink folder:

  • navigate to D:\workspace-link\test-project
  • ng serve

project seems to be build successfully and even runs in the browser but in some different way, eg no vendor.bundle.js is emitted, no styles.bundle.css etc. But the more important thing is that global styles have not been applied in the application!

Output:

Image of Yaktocat

R:\workspace\GIT\iot-config>ng serve
** NG Live Development Server is running on http://localhost:4200. **
Hash: e998220d54d5437f33c0
Time: 10934ms
chunk    {0} main.bundle.js, main.bundle.map (main) 4.59 kB {2} [initial] [rendered]
chunk    {1} styles.bundle.css, styles.bundle.map, styles.bundle.map (styles) 1.73 kB {3} [initial] [rendered]
chunk    {2} vendor.bundle.js, vendor.bundle.map (vendor) 2.83 MB [initial] [rendered]
chunk    {3} inline.bundle.js, inline.bundle.map (inline) 0 bytes [entry] [rendered]
webpack: bundle is now VALID.

R:\workspace\GIT\iot-config>D:

D:\workspace\GIT\iot-config>ng serve
** NG Live Development Server is running on http://localhost:4200. **
Hash: 7bf8c693f9546528f93a
Time: 25323ms
chunk    {0} styles.bundle.map (styles) 87 bytes {2} [initial] [rendered]
chunk    {1} main.bundle.js, main.bundle.map (main) 2.82 MB [initial] [rendered]
chunk    {2} inline.bundle.js, inline.bundle.map (inline) 0 bytes [entry] [rendered]
webpack: bundle is now VALID.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions