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

Run time error: Merge error: file already exists, pass option { overwrite: true } #109

Closed
yringler opened this issue Aug 28, 2019 · 1 comment

Comments

@yringler
Copy link

I set up funnel in ember-cli-build.js to copy a translations file into dist.
It worked, but after I left to another git branch and came back, the builds fail with the following error;

Merge error: file translations/en-us.json exists in C:\Users\john.doe\AppData\Local\Temp\broccoli-19700SykRagiBUk5I\out-272-broccoli_merge_trees_application_dist and C:\Users\john.doe\AppData\Local\Temp\broccoli-19700SykRagiBUk5I\out-274-funnel
Pass option { overwrite: true } to mergeTrees in order to have the latter file win.

Here is the relevant code:

	const extraAssets = new Funnel('translations', {
		destDir: '/translations'
	});

	return app.toTree(extraAssets);
@yringler
Copy link
Author

As per docs, I put files in /public folder, and ember copies them over itself.

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