You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In mediasmart.io we are moving to use CS2 and we would like to use import/export modules (http://coffeescript.org/v2/#modules). The problem is simple, we are getting an error when we are trying to get a basic module:
You may need an appropriate loader to handle this file type.
SyntaxError: 'import' and 'export' may only appear at the top level
Could you give us light about this? Here is our super simple example:
math.coffee
export default Math
other.coffee
import Math from './math'
The text was updated successfully, but these errors were encountered:
Hi,
In mediasmart.io we are moving to use CS2 and we would like to use
import/export
modules (http://coffeescript.org/v2/#modules). The problem is simple, we are getting an error when we are trying to get a basic module:Could you give us light about this? Here is our super simple example:
math.coffee
other.coffee
The text was updated successfully, but these errors were encountered: