Skip to content

'dist' version includes a reference to a missing source map #2

@taitems

Description

@taitems

I came across an issue where I was referencing the dist folder path instead of the raw js path. It resulted in this issue, because the .map does not exist in the dist folder, but is still referenced from its output.

Warning: Unable to read "/usr/src/app/bower_components/angular_page_visibility/dist/page_visibility.js.map" file (Error code: ENOENT).� Use --force to continue.

Two possible solutions:

  • Either remove the source map reference from inside the output JS
  • Or, better yet, copy across the source map as part of the build/output process

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions