Skip to content

Commit

Permalink
Fixing to run with [email protected]+
Browse files Browse the repository at this point in the history
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' ..."
  • Loading branch information
esquinas committed Dec 27, 2015
1 parent cb3d21e commit 7b4f321
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require("coffee-script");

require("coffee-script/register")
var app = require("./app");
app.listen(process.env.C9_PORT);
app.listen(process.env.C9_PORT);

0 comments on commit 7b4f321

Please sign in to comment.