RobCoIndustries / pipboy

:beginner: Experimental pipboy Desktop app for Fallout 4
BSD 3-Clause "New" or "Revised" License
61 stars 7 forks source link

Uncaught Error: Cannot find module 'invariant' #16

Closed luckydonald closed 8 years ago

luckydonald commented 8 years ago

It just stays white. Not sure if the error in the console is the reason. (maybe add an status/error display?) Running this app on a different computer (Mac OS X 10.9.5) bildschirmfoto 2015-12-10 um 18 39 35

luckydonald commented 8 years ago

The Android app can connect fine, and my Laptop is displaying the game using In-Home Streaming, so that is connected too.

luckydonald commented 8 years ago
npm install invariant

seems to fix that issue.

rgbkrk commented 8 years ago

Weird. What version of npm and node are you on? invariant ends up getting installed as part of history, a peer dependency of react-router.

luckydonald commented 8 years ago
mac:~ luckydonald$ npm --version
2.14.4
mac:~ luckydonald$ node --version
v4.1.0
rgbkrk commented 8 years ago

Interesting. I'm on npm 3.3.12, which does a flat layout now (as well as some pesky peer deps issues).

kitten commented 8 years ago

@rgbkrk Normally peer-dependencies are not installed automatically. That's the difference to normal dependencies. I bet we just forgot to add it to the package.json

rgbkrk commented 8 years ago

Ah. That's definitely my fault. It has the appearance of working because of npm 3 installing invariant flatly. I'll fix this now.