-
Notifications
You must be signed in to change notification settings - Fork 142
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
[BroccoliMergeTrees] error while merging the following #169
Comments
Thanks for testing.
Do you use any CSS preprocessing addons?
…On Sun, May 12, 2019 at 10:49 AM Peter ***@***.***> wrote:
Hey, I've followed the instructions and tried to run my app, but got the
following error. Any ideas what the issue might be?
=================================================================================
ENV Summary:
TIME: Sun May 12 2019 16:41:03 GMT+0200 (CEST)
TITLE: ember
ARGV:
- /Users/user/.nvm/versions/node/v8.9.1/bin/node
- /Users/user/.nvm/versions/node/v8.9.1/bin/ember
- s
EXEC_PATH: /Users/user/.nvm/versions/node/v8.9.1/bin/node
TMPDIR: /var/folders/3_/j1n1p4dn6gx884nt498fg9040000gn/T
SHELL: /bin/zsh
PATH:
- /Users/user/.nvm/versions/node/v8.9.1/bin
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
- /Users/user/.nvm/versions/node/v8.9.1/bin
- /Users/user/go/bin
- /Users/user/go/bin
PLATFORM: darwin x64
FREEMEM: 2964840448
TOTALMEM: 17179869184
UPTIME: 175864
LOADAVG: 2.263671875,1.9599609375,1.9169921875
CPUS:
- Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz - 2800
- Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz - 2800
- Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz - 2800
- Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz - 2800
- Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz - 2800
- Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz - 2800
- Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz - 2800
- Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz - 2800
ENDIANNESS: LE
VERSIONS:
- ares: 1.10.1-DEV
- cldr: 31.0.1
- http_parser: 2.7.0
- icu: 59.1
- modules: 57
- nghttp2: 1.25.0
- node: 8.9.1
- openssl: 1.0.2m
- tz: 2017b
- unicode: 9.0
- uv: 1.15.0
- v8: 6.1.534.47
- zlib: 1.2.11
ERROR Summary:
- broccoliBuilderErrorStack: Error: [BroccoliMergeTrees] error while merging the following:
1. [ObserveTree: @embroider/compat/observe-tree]
2. [ObserveTree: @embroider/compat/observe-tree]
3. [ObserveTree: @embroider/compat/observe-tree]
4. [Funnel]
5. [RewritePackageJSON: embroider:core:rewrite-package-json]
Merge error: file app.css exists in /var/folders/3_/j1n1p4dn6gx884nt498fg9040000gn/T/broccoli-34151OyagRZf6r1Fl/out-23-observe_tree_embroider_compat_observe_tree and /var/folders/3_/j1n1p4dn6gx884nt498fg9040000gn/T/broccoli-34151OyagRZf6r1Fl/out-27-observe_tree_embroider_compat_observe_tree
Pass option { overwrite: true } to mergeTrees in order to have the latter file win.
at MergeTrees._getMergedDirectory2 (/Users/user/dev/testapp/node_modules/broccoli-merge-trees/node_modules/merge-trees/index.js:151:19)
at MergeTrees._getMergedDirectory (/Users/user/dev/testapp/node_modules/broccoli-merge-trees/node_modules/merge-trees/index.js:40:17)
at MergeTrees.merge (/Users/user/dev/testapp/node_modules/broccoli-merge-trees/node_modules/merge-trees/index.js:27:20)
at BroccoliMergeTrees.build (/Users/user/dev/testapp/node_modules/broccoli-merge-trees/index.js:36:21)
at resolve (/Users/user/dev/testapp/node_modules/broccoli/lib/wrappers/transform-node.js:29:35)
at new Promise (<anonymous>)
at TransformNodeWrapper.build (/Users/user/dev/testapp/node_modules/broccoli/lib/wrappers/transform-node.js:21:12)
at Promise.resolve.then.then.then (/Users/user/dev/testapp/node_modules/broccoli/lib/builder.js:116:28)
at <anonymous>
at process._tickDomainCallback (internal/process/next_tick.js:228:7)
- code: [undefined]
- codeFrame: [BroccoliMergeTrees] error while merging the following:
1. [ObserveTree: @embroider/compat/observe-tree]
2. [ObserveTree: @embroider/compat/observe-tree]
3. [ObserveTree: @embroider/compat/observe-tree]
4. [Funnel]
5. [RewritePackageJSON: embroider:core:rewrite-package-json]
Merge error: file app.css exists in /var/folders/3_/j1n1p4dn6gx884nt498fg9040000gn/T/broccoli-34151OyagRZf6r1Fl/out-23-observe_tree_embroider_compat_observe_tree and /var/folders/3_/j1n1p4dn6gx884nt498fg9040000gn/T/broccoli-34151OyagRZf6r1Fl/out-27-observe_tree_embroider_compat_observe_tree
Pass option { overwrite: true } to mergeTrees in order to have the latter file win.
at BroccoliMergeTrees
-~- created here: -~-
at BroccoliMergeTrees.Plugin (/Users/user/dev/testapp/node_modules/broccoli-plugin/index.js:7:31)
at new BroccoliMergeTrees (/Users/user/dev/testapp/node_modules/broccoli-merge-trees/index.js:16:10)
at Object.BroccoliMergeTrees [as default] (/Users/user/dev/testapp/node_modules/broccoli-merge-trees/index.js:10:53)
at V1Addon.get v2Tree [as v2Tree] ***@***.***/compat/src/v1-addon.js:298:46)
at oldPackages.map.pkg ***@***.***/compat/src/build-compat-addon.js:42:48)
at Array.map (<anonymous>)
at buildCompatAddon ***@***.***/compat/src/build-compat-addon.js:42:33)
at Object.cachedBuildCompatAddon [as default] ***@***.***/compat/src/build-compat-addon.js:13:16)
at CompatAddons.movedAddons.map.oldPkg ***@***.***/compat/src/compat-addons.js:39:105)
at Array.map (<anonymous>)
-~- (end) -~-
- errorMessage: [BroccoliMergeTrees] error while merging the following:
1. [ObserveTree: @embroider/compat/observe-tree]
2. [ObserveTree: @embroider/compat/observe-tree]
3. [ObserveTree: @embroider/compat/observe-tree]
4. [Funnel]
5. [RewritePackageJSON: embroider:core:rewrite-package-json]
Merge error: file app.css exists in /var/folders/3_/j1n1p4dn6gx884nt498fg9040000gn/T/broccoli-34151OyagRZf6r1Fl/out-23-observe_tree_embroider_compat_observe_tree and /var/folders/3_/j1n1p4dn6gx884nt498fg9040000gn/T/broccoli-34151OyagRZf6r1Fl/out-27-observe_tree_embroider_compat_observe_tree
Pass option { overwrite: true } to mergeTrees in order to have the latter file win.
at BroccoliMergeTrees
-~- created here: -~-
at BroccoliMergeTrees.Plugin (/Users/user/dev/testapp/node_modules/broccoli-plugin/index.js:7:31)
at new BroccoliMergeTrees (/Users/user/dev/testapp/node_modules/broccoli-merge-trees/index.js:16:10)
at Object.BroccoliMergeTrees [as default] (/Users/user/dev/testapp/node_modules/broccoli-merge-trees/index.js:10:53)
at V1Addon.get v2Tree [as v2Tree] ***@***.***/compat/src/v1-addon.js:298:46)
at oldPackages.map.pkg ***@***.***/compat/src/build-compat-addon.js:42:48)
at Array.map (<anonymous>)
at buildCompatAddon ***@***.***/compat/src/build-compat-addon.js:42:33)
at Object.cachedBuildCompatAddon [as default] ***@***.***/compat/src/build-compat-addon.js:13:16)
at CompatAddons.movedAddons.map.oldPkg ***@***.***/compat/src/compat-addons.js:39:105)
at Array.map (<anonymous>)
-~- (end) -~-
at OneShot
-~- created here: -~-
at new Plugin (/Users/user/dev/testapp/node_modules/broccoli-plugin/index.js:7:31)
at new OneShot ***@***.***/compat/src/one-shot.js:14:9)
at Object.cachedBuildCompatAddon [as default] ***@***.***/compat/src/build-compat-addon.js:15:16)
at CompatAddons.movedAddons.map.oldPkg ***@***.***/compat/src/compat-addons.js:39:105)
at Array.map (<anonymous>)
at new CompatAddons ***@***.***/compat/src/compat-addons.js:39:63)
at Object.defaultPipeline [as compatBuild] ***@***.***/compat/src/default-pipeline.js:17:18)
at module.exports (/Users/user/dev/testapp/ember-cli-build.js:32:39)
at Builder.readBuildFile (/Users/user/dev/testapp/node_modules/ember-cli/lib/models/builder.js:52:14)
at Builder.setupBroccoliBuilder (/Users/user/dev/testapp/node_modules/ember-cli/lib/models/builder.js:66:22)
-~- (end) -~-
- errorType: Build Error
- location:
- column: [undefined]
- file: [undefined]
- line: [undefined]
- treeDir: [undefined]
- message: [BroccoliMergeTrees] error while merging the following:
1. [ObserveTree: @embroider/compat/observe-tree]
2. [ObserveTree: @embroider/compat/observe-tree]
3. [ObserveTree: @embroider/compat/observe-tree]
4. [Funnel]
5. [RewritePackageJSON: embroider:core:rewrite-package-json]
Merge error: file app.css exists in /var/folders/3_/j1n1p4dn6gx884nt498fg9040000gn/T/broccoli-34151OyagRZf6r1Fl/out-23-observe_tree_embroider_compat_observe_tree and /var/folders/3_/j1n1p4dn6gx884nt498fg9040000gn/T/broccoli-34151OyagRZf6r1Fl/out-27-observe_tree_embroider_compat_observe_tree
Pass option { overwrite: true } to mergeTrees in order to have the latter file win.
at BroccoliMergeTrees
-~- created here: -~-
at BroccoliMergeTrees.Plugin (/Users/user/dev/testapp/node_modules/broccoli-plugin/index.js:7:31)
at new BroccoliMergeTrees (/Users/user/dev/testapp/node_modules/broccoli-merge-trees/index.js:16:10)
at Object.BroccoliMergeTrees [as default] (/Users/user/dev/testapp/node_modules/broccoli-merge-trees/index.js:10:53)
at V1Addon.get v2Tree [as v2Tree] ***@***.***/compat/src/v1-addon.js:298:46)
at oldPackages.map.pkg ***@***.***/compat/src/build-compat-addon.js:42:48)
at Array.map (<anonymous>)
at buildCompatAddon ***@***.***/compat/src/build-compat-addon.js:42:33)
at Object.cachedBuildCompatAddon [as default] ***@***.***/compat/src/build-compat-addon.js:13:16)
at CompatAddons.movedAddons.map.oldPkg ***@***.***/compat/src/compat-addons.js:39:105)
at Array.map (<anonymous>)
-~- (end) -~-
at OneShot
-~- created here: -~-
at new Plugin (/Users/user/dev/testapp/node_modules/broccoli-plugin/index.js:7:31)
at new OneShot ***@***.***/compat/src/one-shot.js:14:9)
at Object.cachedBuildCompatAddon [as default] ***@***.***/compat/src/build-compat-addon.js:15:16)
at CompatAddons.movedAddons.map.oldPkg ***@***.***/compat/src/compat-addons.js:39:105)
at Array.map (<anonymous>)
at new CompatAddons ***@***.***/compat/src/compat-addons.js:39:63)
at Object.defaultPipeline [as compatBuild] ***@***.***/compat/src/default-pipeline.js:17:18)
at module.exports (/Users/user/dev/testapp/ember-cli-build.js:32:39)
at Builder.readBuildFile (/Users/user/dev/testapp/node_modules/ember-cli/lib/models/builder.js:52:14)
at Builder.setupBroccoliBuilder (/Users/user/dev/testapp/node_modules/ember-cli/lib/models/builder.js:66:22)
-~- (end) -~-
- name: BuildError
- nodeAnnotation: [undefined]
- nodeName: OneShot
- originalErrorMessage: [BroccoliMergeTrees] error while merging the following:
1. [ObserveTree: @embroider/compat/observe-tree]
2. [ObserveTree: @embroider/compat/observe-tree]
3. [ObserveTree: @embroider/compat/observe-tree]
4. [Funnel]
5. [RewritePackageJSON: embroider:core:rewrite-package-json]
Merge error: file app.css exists in /var/folders/3_/j1n1p4dn6gx884nt498fg9040000gn/T/broccoli-34151OyagRZf6r1Fl/out-23-observe_tree_embroider_compat_observe_tree and /var/folders/3_/j1n1p4dn6gx884nt498fg9040000gn/T/broccoli-34151OyagRZf6r1Fl/out-27-observe_tree_embroider_compat_observe_tree
Pass option { overwrite: true } to mergeTrees in order to have the latter file win.
at BroccoliMergeTrees
-~- created here: -~-
at BroccoliMergeTrees.Plugin (/Users/user/dev/testapp/node_modules/broccoli-plugin/index.js:7:31)
at new BroccoliMergeTrees (/Users/user/dev/testapp/node_modules/broccoli-merge-trees/index.js:16:10)
at Object.BroccoliMergeTrees [as default] (/Users/user/dev/testapp/node_modules/broccoli-merge-trees/index.js:10:53)
at V1Addon.get v2Tree [as v2Tree] ***@***.***/compat/src/v1-addon.js:298:46)
at oldPackages.map.pkg ***@***.***/compat/src/build-compat-addon.js:42:48)
at Array.map (<anonymous>)
at buildCompatAddon ***@***.***/compat/src/build-compat-addon.js:42:33)
at Object.cachedBuildCompatAddon [as default] ***@***.***/compat/src/build-compat-addon.js:13:16)
at CompatAddons.movedAddons.map.oldPkg ***@***.***/compat/src/compat-addons.js:39:105)
at Array.map (<anonymous>)
-~- (end) -~-
- stack: Error: [BroccoliMergeTrees] error while merging the following:
1. [ObserveTree: @embroider/compat/observe-tree]
2. [ObserveTree: @embroider/compat/observe-tree]
3. [ObserveTree: @embroider/compat/observe-tree]
4. [Funnel]
5. [RewritePackageJSON: embroider:core:rewrite-package-json]
Merge error: file app.css exists in /var/folders/3_/j1n1p4dn6gx884nt498fg9040000gn/T/broccoli-34151OyagRZf6r1Fl/out-23-observe_tree_embroider_compat_observe_tree and /var/folders/3_/j1n1p4dn6gx884nt498fg9040000gn/T/broccoli-34151OyagRZf6r1Fl/out-27-observe_tree_embroider_compat_observe_tree
Pass option { overwrite: true } to mergeTrees in order to have the latter file win.
at MergeTrees._getMergedDirectory2 (/Users/user/dev/testapp/node_modules/broccoli-merge-trees/node_modules/merge-trees/index.js:151:19)
at MergeTrees._getMergedDirectory (/Users/user/dev/testapp/node_modules/broccoli-merge-trees/node_modules/merge-trees/index.js:40:17)
at MergeTrees.merge (/Users/user/dev/testapp/node_modules/broccoli-merge-trees/node_modules/merge-trees/index.js:27:20)
at BroccoliMergeTrees.build (/Users/user/dev/testapp/node_modules/broccoli-merge-trees/index.js:36:21)
at resolve (/Users/user/dev/testapp/node_modules/broccoli/lib/wrappers/transform-node.js:29:35)
at new Promise (<anonymous>)
at TransformNodeWrapper.build (/Users/user/dev/testapp/node_modules/broccoli/lib/wrappers/transform-node.js:21:12)
at Promise.resolve.then.then.then (/Users/user/dev/testapp/node_modules/broccoli/lib/builder.js:116:28)
at <anonymous>
at process._tickDomainCallback (internal/process/next_tick.js:228:7)
=================================================================================
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#169>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AACN6MQ7SKQ444K7UZSGKEDPVAVALANCNFSM4HMKQ6YQ>
.
|
Yes,
|
The problematic package seems to be
|
The source of the IMO the entire You can workaround by neutering the entire custom treeForAddon hook like this: const { V1Addon } = require('@embroider/compat');
const Webpack = require('@embroider/webpack').Webpack;
return require('@embroider/compat').compatBuild(app, Webpack, {
compatAdapters: new Map([[
"@html-next/vertical-collection",
class extends V1Addon {
customizes(...names) {
// this causes us to never detect a customized treeForAddon and therefore never run it.
// the treeForAddon in this package does dubious things, and we end up more correct
// without it.
return super.customizes(...names.filter(n => n !== 'treeForAddon'));
}
}
]])
}); The torii issue is unrelated but I made a PR to fix that too. |
@ef4 this is great, thanks! So something like this:
should fix the |
If you happened to enable That compat adapter is close to the right idea, but this code is running after converting it to v2 format, so But also, the reason we're including So the cleanest workaround is to remove the entry from embroider/packages/compat/src/compat-adapters/ember-data.ts Lines 28 to 37 in b01bc79
|
Thanks, I had an additional issue with Here is the full code for my local const { V1Addon } = require('@embroider/compat');
const Webpack = require('@embroider/webpack').Webpack;
let compatAdapters = new Map();
compatAdapters.set('@html-next/vertical-collection', class extends V1Addon {
customizes(...names) {
// this causes us to never detect a customized treeForAddon and therefore never run it.
// the treeForAddon in this package does dubious things, and we end up more correct
// without it.
return super.customizes(...names.filter(n => n !== 'treeForAddon'));
}
});
const cloneDeep = require('lodash/cloneDeep');
compatAdapters.set('torii', class extends V1Addon {
get packageMeta() {
let meta = super.packageMeta;
meta = cloneDeep(meta);
if (meta['implicit-modules']) {
meta['implicit-modules'] = meta['implicit-modules'].filter(name => !name.startsWith('./load-initializers'));
}
return meta;
}
});
const Funnel = require('broccoli-funnel');
compatAdapters.set('ember-paper', class extends V1Addon {
get v2Tree() {
let tree = super.v2Tree;
return new Funnel(tree, {
exclude: ['**/paper-autocomplete-dropdown.js', '**/paper-snackbar-text.js']
});
}
}); |
Sorry to spam on a closed issue. I have one last question. After building I've got these warnings:
I assume these are also related to non-existing imports/exports? |
Yes, those warnings are pointing out real problems where addons are trying to import nonexistent things. They are warnings and not errors because nobody is actually trying to use the nonexistent things. It would be very helpful if someone wants to make PRs to those projects to clean up the warnings. It looks like the test-helpers one was already done here: emberjs/ember-test-helpers#580 |
Hey, I've followed the instructions and tried to run my app, but got the following error. Any ideas what the issue might be?
The text was updated successfully, but these errors were encountered: