Skip to content

Vendor source map files not included in /dist #706

@jasonswett

Description

@jasonswett

I'm using Angular CLI version 0.0.39 on Mac OS.

When I run ng serve using a proxy (ng serve --proxy http://localhost:3000) I see a bunch of requests come across like this:

GET /vendor/reflect-metadata/Reflect.js.map 404 507.868 ms - -
GET /vendor/@angular/platform-browser-dynamic/index.js.map 404 209.116 ms - -
GET /vendor/@angular/platform-browser-dynamic/platform_browser_dynamic.js.map 404 341.069 ms - -
GET /vendor/@angular/compiler/index.js.map 404 436.576 ms - -

At port 3000 I have a Rails server running with /public symlinked to /dist, meaning a URL like http://localhost:3000/vendor/reflect-metadata/Reflect.js will load the actual Reflect.js from my Angular project. The Reflect.js.map file is genuinely not in dist next to Reflect.js, and navigating to http://localhost:3000/vendor/reflect-metadata/Reflect.js.map gives a 404.

I would imagine that either Angular should not be looking for these map files or the map files should be present. It's also entirely possible that I'm misinterpreting the situation because a lot of this stuff is new to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions