donejs / bitballs

A basketball tourney application.
https://donejs.com/bitballs.html
MIT License
11 stars 17 forks source link

Application won't start #193

Closed marshallswain closed 8 years ago

marshallswain commented 8 years ago

I get the following error upon running donejs start:

Bitovis-MacBook-Pro:bitballs Bitovi$ donejs start

> bitballs@0.3.1 start /Users/Bitovi/Sites/bitballs
> node index.js

Node app is running on port 5000
steal - error loading @config. [TypeError: Error loading "package.json!npm" at file:/Users/Bitovi/Sites/bitballs/public/package.json
Cannot read property 'version' of undefined]
Potentially unhandled rejection [29] Error: Error loading "bitballs/index.stache!done-autorender" at <unknown>
Error loading "done-autorender" at file:/Users/Bitovi/Sites/bitballs/public/done-autorender.js
ENOENT: no such file or directory, open '/Users/Bitovi/Sites/bitballs/public/done-autorender.js'
    at Error (native)

I'm running Node 5.8.0.

marshallswain commented 8 years ago

I've checked in the done-ssr-middleware and it's reading the package.json correctly, so I'm not sure what's going on.

justinbmeyer commented 8 years ago

Run donejs develop.

Sent from my iPhone

On Mar 15, 2016, at 11:57 PM, Marshall Thompson notifications@github.com wrote:

I've checked in the done-ssr-middleware and it's reading the package.json correctly, so I'm not sure what's going on.

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub

marshallswain commented 8 years ago

I still get the same error, and now an additional error for the live reload not working:

Bitovis-MacBook-Pro:bitballs Bitovi$ donejs develop

> bitballs@0.3.1 develop /Users/Bitovi/Sites/bitballs
> node index.js --develop

MailDev app running at 0.0.0.0:1080
/Users/Bitovi/Sites/bitballs/public/package.json!npm
Node app is running on port 5000
MailDev SMTP Server running at 0.0.0.0:1025
steal - error loading @config. [TypeError: Error loading "package.json!npm" at file:/Users/Bitovi/Sites/bitballs/public/package.json
Cannot read property 'version' of undefined]
Potentially unhandled rejection [29] Error: Error loading "bitballs/index.stache!done-autorender" at <unknown>
Error loading "done-autorender" at file:/Users/Bitovi/Sites/bitballs/public/done-autorender.js
ENOENT: no such file or directory, open '/Users/Bitovi/Sites/bitballs/public/done-autorender.js'
    at Error (native)
/Users/Bitovi/Sites/bitballs/public/node_modules/steal-tools/lib/stream/live.js:29
    var port = wss.options.server.address().port;
                                           ^

TypeError: Cannot read property 'port' of null
    at module.exports (/Users/Bitovi/Sites/bitballs/public/node_modules/steal-tools/lib/stream/live.js:29:41)
    at Object.<anonymous> (/Users/Bitovi/Sites/bitballs/public/node_modules/steal-tools/bin/steal:83:2)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Function.Module.runMain (module.js:447:10)
    at startup (node.js:141:18)
    at node.js:933:3
marshallswain commented 8 years ago

Just to rule out the possibility of me having made changes that I forgot about, I tried starting over from scratch, following the instructions in the README.md, but arrived back at the same issue.

justinbmeyer commented 8 years ago

cc @matthewp @akagomez

justinbmeyer commented 8 years ago

@marshallswain what version of donejs?

matthewp commented 8 years ago

Is this master?

matthewp commented 8 years ago

Working for me on master with 5.3. I'll try with 5.8.

marshallswain commented 8 years ago

donejs --version = 0.7.2

I'm trying node 5.7, now.

marshallswain commented 8 years ago

5.7 worked for curtis

matthewp commented 8 years ago

All good for me with 5.8

screen shot 2016-03-16 at 1 50 29 pm
marshallswain commented 8 years ago

My node environment is apparently broken. :(

akagomez commented 8 years ago

@marshallswain My node environment was giving me issues also, though the symptom was different: https://github.com/donejs/bitballs/issues/129

marshallswain commented 8 years ago

Thanks @akagomez. I did the same and it works, now. I was using n instead of nvm. I'm having a much better experience with nvm.