Another web-package issue...

瀏覽次數:78 次
跳到第一則未讀訊息

Neal Sanche

未讀,
2014年6月30日 凌晨1:04:512014/6/30
收件者: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

未讀,
2014年6月30日 清晨7:07:072014/6/30
收件者: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

未讀,
2014年6月30日 上午8:44:352014/6/30
收件者: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

未讀,
2014年6月30日 上午10:42:102014/6/30
收件者: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.
回覆所有人
回覆作者
轉寄
0 則新訊息