ember-cli-coffeescript icon indicating copy to clipboard operation
ember-cli-coffeescript copied to clipboard

Detect and warn about `app.js` and `router.js` if you also have coffee-equivalents

Open kimroen opened this issue 9 years ago • 2 comments

This is a common thing to run in to after updating ember-cli.

What happens is this:

You have an app.coffee file, and you also have an app.js file. This can happen when you update ember-cli, for example.

broccoli-coffee tries to generate an app.js file from the app.coffee file, but that file is already present, so you get an error.

What this issue is about is detecting these files (app.js and router.js) specificically and giving the user a warning, because they probably didn't mean to have both a js and cs version of them, it just happened accidentally. A specific error is better than the one you get now, which is kind of cryptic.

kimroen avatar May 03 '15 19:05 kimroen

hello,

I upgraded to latest ember/ember-cli and now I'm getting this error:

Error: EEXIST, file already exists '/Users/eric/Projects/myapp/overlord/build/client-web/tmp/coffee_script_filter-output_path-XZuGEV4i.tmp/client-web/routes/application.js'

any idea what's causing it or how to resolve it? I do not have myapp/routes/application.js only the coffeescript version

erichaus avatar Mar 13 '16 21:03 erichaus

@erichonkanen Sorry for the late reply. I don't think this problem is related to this issue. Are you having problems beyond what you reported in https://github.com/kimroen/ember-cli-coffeescript/issues/87 ?

kimroen avatar Jun 05 '16 15:06 kimroen