-
Notifications
You must be signed in to change notification settings - Fork 58
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
Error: Use CoffeeScript.register() or require the coffee-script/register module to require .iced.md files #138
Comments
This changed a while back with [email protected]. Check the main Coffee
On Sat, Nov 1, 2014 at 7:43 AM, ypapax [email protected] wrote:
|
Thank you, @maxtaco. When I added line |
Following instructions at http://code.tutsplus.com/tutorials/better-coffeescript-testing-with-mocha--net-24696 supplemented by various stackoverflow and other pages, I did all this: coffee -v I have a test .coffee file containing When I run This is also true if I miss out ' --require coffee-script/register' in the mocha line above, or if I install iced-coffee and add "require('iced-coffee-script/register')" to my test .coffee file. What am I missing? |
Got it. CoffeeScript = require('coffee-script') |
As it was, this error raised: `Error: Use CoffeeScript.register() or require the coffee-script/register module to require .coffee.md files.` GitHub user Maxtaco pointed out the [solution to the error here](maxtaco/coffee-script#138) I quote "This changed a while back with [email protected]. Check the main Coffee page, and here's the explanation: - When requiring CoffeeScript files in Node you must now explicitly register the compiler. This can be done with require 'coffee-script/register' ..."
my app.js is:
when I run it:
got error:
That began to happen after I updated
iced-coffee-script
to version1.8.0-a
andcoffee-script
to version1.8.0
.The text was updated successfully, but these errors were encountered: