Another web-package issue...

78 views
Skip to first unread message

Neal Sanche

unread,
Jun 30, 2014, 1:04:51 AM6/30/14
to mimo...@googlegroups.com
Hi Guys,

I just wrote a super simple web app with Mimosa, coffee script, handlebars, etc. mimosa watch -s works great. I added the 'web-package' module, and followed the Heroku instructions in the about page. And nothing happens when I deploy the app.

When I try running 'node dist/app.js' the error looks like this:

± |master | → node app.js 


module.js:340

    throw err;

          ^

Error: Cannot find module 'coffee-script/register'

    at Function.Module._resolveFilename (module.js:338:15)

    at Function.Module._load (module.js:280:25)

    at Module.require (module.js:364:17)

    at require (module.js:380:17)

    at Object.<anonymous> (/Users/neal/nsdev/mary/dist/app.js:1:63)

    at Module._compile (module.js:456:26)

    at Object.Module._extensions..js (module.js:474:10)

    at Module.load (module.js:356:32)

    at Function.Module._load (module.js:312:12)

    at Function.Module.runMain (module.js:497:10)


So, I suspect heroku is having a similar issue. I've been away from Mimosa since September last year, and am a bit lost. Be gentle.

Neal

GMail

unread,
Jun 30, 2014, 7:07:07 AM6/30/14
to mimo...@googlegroups.com
GitHub it?

What version of coffeescript?

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "mimosajs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mimosajs+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

dbashford

unread,
Jun 30, 2014, 8:44:35 AM6/30/14
to mimo...@googlegroups.com
Nevermind!

Going to address this is a new version of Mimosa.  Problem is that "mimosa new" spits out coffeescript 1.6.x into your package.json.  But web-package is coded to expect 1.7.  Going to update mimosa new.  Need to address in web-package too.

In the meantime, i you update your packge.json's coffeescript to 1.7.1 you should be good.
To unsubscribe from this group and stop receiving emails from it, send an email to mimosajs+unsubscribe@googlegroups.com.

Neal Sanche

unread,
Jun 30, 2014, 10:42:10 AM6/30/14
to mimo...@googlegroups.com
Absolutely did the trick, thanks!

Neal
To unsubscribe from this group and stop receiving emails from it, send an email to mimosajs+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages