angular_page_visibility icon indicating copy to clipboard operation
angular_page_visibility copied to clipboard

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

Open taitems opened this issue 6 years ago • 1 comments

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

taitems avatar May 29 '18 05:05 taitems

Hi @taitems , thanks for reporting! :smile: Would you like to create a pull request?

mz026 avatar May 30 '18 14:05 mz026