I am trying to use Coffeescript with an ember application suite, but it explodes when I rename router.js to router.coffee. I guess it should do something with the syntax of the emc6 module. How to convert it correctly?
Router = Ember.Router.extend() Router.map -> @route "component-test" @route "helper-test" export default Router
Since CoffeScript currently cannot parse the syntax of the ES6 module, wrap your import / export statements with backlinks:
import
export
`export default Router`
Hope this only makes it work for you.
Source: https://habr.com/ru/post/958130/More articles:TFS Label Mismatch - tfshow to disable tomcat 7 console debugging information - javaChange Spring framework level in a simple project example? - javaChanging Spring container log level setting - javaIs cassandra num_tokens really num_token_partitions? - cassandramethod not called with dispatch_async and repeating NSTimer - iosHow can I use with simple and ajax = "true" mode? - ajaxHow to get maximum CPU utilization - performanceView images View with animation - javaNameError: The global name 'myExample2' is not defined. # Modules - pythonAll Articles