Git Product home page Git Product logo

Comments (10)

kimroen avatar kimroen commented on May 29, 2024

Hi there, Christopher.

I'm not sure what you particular problem is here, but some thoughts:

  • Can you try the newest version of ember-cli? There have been some similar-looking issues there that I believe have been resolved: ember-cli/ember-cli#3413
  • Could it be that you have a .coffee and .js file in your app with the same name?

from ember-cli-coffeescript.

tolgaek avatar tolgaek commented on May 29, 2024

Having the same issue with this library. And yes @kimroen, it was because during the ember reset process, ember-cli creates a few of the js files. The ones I came across were router.coffee which was duplicated with a router.js. I also use emblem and ember-cli added an application.hbs, when I had application.emblem

@Truffula deleting router.js should resolve your issue

from ember-cli-coffeescript.

kimroen avatar kimroen commented on May 29, 2024

Thanks @tolgaek. Hopefully that solves your problem, @Truffula.

I'd really like to overwrite the app-blueprint so that when you do ember init you get coffee-files, but we've discussed this in #65. The currently proposed solution there won't help with this. I just can't keep a blueprint with all the files in the app-blueprint up to date.

Maybe if I could "extend" the blueprint and only overwrite the files that are different?

A different approach could be to detect this and show a more informative error message if you have these duplicates.

Thoughts?

from ember-cli-coffeescript.

kimroen avatar kimroen commented on May 29, 2024

We'll try to find a solution for this, but I'll close in favor of #65.

from ember-cli-coffeescript.

Truffula avatar Truffula commented on May 29, 2024

Thanks, and sorry for the delay in replying! It was ... an out-of-date package, I think?
(Sorry, became a dad recently so I'm a little sleep-deprived!)

from ember-cli-coffeescript.

kimroen avatar kimroen commented on May 29, 2024

@Truffula Congratulations!

from ember-cli-coffeescript.

michaeldeitcher avatar michaeldeitcher commented on May 29, 2024

I'm running into a similar issue after upgrading Ember Simple Auth.

I have a /routes/application.coffee
then I install Ember Simple Auth
then I get the this error:
EEXIST, file already exists '/Users/michaeldeitcher/Workspace/trekaroo_js/tmp/coffee_script_filter-output_path-9vXQqp8u.tmp/trekaroo-js/routes/application.js'

If I delete this file the issue goes away:
/Users/michaeldeitcher/Workspace/trekaroo_js/node_modules/ember-simple-auth/app/routes/application.js

#65 Does not address this problem with addon compatibility. Please help.

from ember-cli-coffeescript.

kimroen avatar kimroen commented on May 29, 2024

@michaeldeitcher Sorry that you're running in to this. You're right that there is an issue, but it's more related to #87. In there, you'll find that the temporary solution to this is actually to use javascript for your application route.

There is a lot more description of the issue and potential solutions over there, and I'd love any and all help if you have resources to spare.

from ember-cli-coffeescript.

michaeldeitcher avatar michaeldeitcher commented on May 29, 2024

Thanks for your response @kimroen. I ended up converting the file to js and it's working fine. I'll take a look at #87

from ember-cli-coffeescript.

hoIIer avatar hoIIer commented on May 29, 2024

+1 I just ran into this same issue... kind of annoying to have to use js for certain files as it defeats the purpose of using coffeescript! is this something that is an issue with ember-simple-auth and needs to be addressed or a larger issue with addons?

from ember-cli-coffeescript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.