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

v2.0.0 gives error when running ember deploy #53

Closed
akatov opened this issue Oct 6, 2017 · 5 comments
Closed

v2.0.0 gives error when running ember deploy #53

akatov opened this issue Oct 6, 2017 · 5 comments
Labels

Comments

@akatov
Copy link

akatov commented Oct 6, 2017

Error: The Broccoli Plugin: [Fingerprint] failed with:
Error: ENOENT: no such file or directory, open '/repo/tmp/uglify_writer-input_base_path-ZtW0omFx.tmp/assets/dag-map.js.map'
    at Object.fs.openSync (fs.js:653:18)
    at Object.fs.readFileSync (fs.js:554:33)
    at UglifyWriter.processFile (/repo/node_modules/broccoli-uglify-sourcemap/index.js:101:41)
    at /repo/node_modules/broccoli-uglify-sourcemap/index.js:65:16
    at Array.forEach (<anonymous>)
    at /repo/node_modules/broccoli-uglify-sourcemap/index.js:55:25
    at Array.forEach (<anonymous>)
    at UglifyWriter.build (/repo/node_modules/broccoli-uglify-sourcemap/index.js:54:19)
    at /repo/node_modules/broccoli-plugin/read_compat.js:93:34
    at tryCatch (/repo/node_modules/rsvp/dist/rsvp.js:525:12)
    at invokeCallback (/repo/node_modules/rsvp/dist/rsvp.js:538:13)
    at publish (/repo/node_modules/rsvp/dist/rsvp.js:508:7)
    at flush (/repo/node_modules/rsvp/dist/rsvp.js:2415:5)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)

I suspect this is because of the upgrade to source-map-url: ^0.4.0

@akatov
Copy link
Author

akatov commented Oct 8, 2017

I think this is pretty much the same issue as ember-cli/ember-cli-terser#29

@urbany
Copy link

urbany commented Oct 12, 2017

I added a comment there I think it's not solved for every case yet: ember-cli/ember-cli-terser#29 (comment)

@rwjblue
Copy link
Member

rwjblue commented Oct 12, 2017

@urbany - #29 was not a bug in ember-cli-uglify (but was instead a bug in the actual source files that Ember generated). So far there is no evidence that an actual bug exists in this repo...

@urbany
Copy link

urbany commented Oct 12, 2017

Thank you for the quick reply Robert!
I'm not sure how all the pieces fit together, but shouldn't the broccoli-uglify-sourcemap remove the //# sourceMappingURL=popper.js.map when joining all the vendor files into the vendor.js?since the popper.js.map is already in the cendor.map there is no need to have the //# sourceMappingURL=popper.js.map comment right?

@0xadada
Copy link

0xadada commented Nov 3, 2017

Workaround for this was to disable sourcemaps in production builds

ember-cli-build.js

// ...
const EmberApp = require('ember-cli/lib/broccoli/ember-app');

// ...
module.exports = function(defaults) {
  let app = new EmberApp(defaults, {
    sourcemaps: {
      enabled: EmberApp.env() !== 'production',
    },
   // ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants