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

Merge error: Pass option { overwrite: true } to mergeTrees in order to have the latter file win. #78

Open
VolodyaCm opened this issue Dec 22, 2019 · 0 comments

Comments

@VolodyaCm
Copy link

VolodyaCm commented Dec 22, 2019

After upgrading ember to 3.15.1

How pass overwrite: true to mergeTrees?

I found similar issue here #109, But I did not find a solution.

Error:

(node:7137) UnhandledPromiseRejectionWarning: Error: [BroccoliMergeTrees] error while merging the following:

  1. [BroccoliMergeTrees: Application Dist]
  2. [Funnel]
    Merge error: file assets/web-workers/web-worker.js exists in /tmp/broccoli-7137h4FQvjVBxXVy/out-543-broccoli_merge_trees_application_dist and /tmp/broccoli-7137h4FQvjVBxXVy/out-545-funnel
    Pass option { overwrite: true } to mergeTrees in order to have the latter file win.
    at MergeTrees._getMergedDirectory2 (/mnt/s/pr/pjc/ember-app/node_modules/ember-cli/node_modules/merge-trees/index.js:151:19)
    at MergeTrees._getMergedDirectory2 (/mnt/s/pr/pjc/ember-app/node_modules/ember-cli/node_modules/merge-trees/index.js:174:33)
    at MergeTrees._getMergedDirectory2 (/mnt/s/pr/pjc/ember-app/node_modules/ember-cli/node_modules/merge-trees/index.js:174:33)
    at MergeTrees._getMergedDirectory (/mnt/s/pr/pjc/ember-app/node_modules/ember-cli/node_modules/merge-trees/index.js:40:17)
    at MergeTrees.merge (/mnt/s/pr/pjc/ember-app/node_modules/ember-cli/node_modules/merge-trees/index.js:27:20)
    at BroccoliMergeTrees.build (/mnt/s/pr/pjc/ember-app/node_modules/ember-cli/node_modules/broccoli-merge-trees/index.js:36:21)
    at resolve (/mnt/s/pr/pjc/ember-app/node_modules/ember-cli/node_modules/broccoli/dist/wrappers/transform-node.js:68:45)
    at new Promise ()
    at TransformNodeWrapper.build (/mnt/s/pr/pjc/ember-app/node_modules/ember-cli/node_modules/broccoli/dist/wrappers/transform-node.js:53:16)
    at Promise.resolve.then.then.then (/mnt/s/pr/pjc/ember-app/node_modules/ember-cli/node_modules/broccoli/dist/builder.js:99:36)
    (node:7137) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 6)
    (node:7137) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant