-
Notifications
You must be signed in to change notification settings - Fork 14
Deploy to meteor.com fails with error “Cannot find module 'websocket-driver'” #42
Comments
Sorry for the confusion, but I thought it would be best to answer at the SO question. Current situation is that when I (using 0.8.1.3 on Win7) publish an unmodified leaderboard example it works fine, for example: http://leaderboard_sd.meteor.com/ which suggests that there is some problem with your environment or installation of meteor. I know it may sound a bit lame, but can I suggest that you try doing a re-installation or meteor on our machine? In Windows Explorer find Then, recreate a new leaderboard directory from the example (a fresh one):
The other thing that I did (which I don't think should make a difference) is that I launched it locally before publishing to meteor.com. Finally, just for reference, what OS are you using, again I don't think it makes a difference but it is sometimes useful (Win7, Win8.1 etc.) |
The other avenue of attack is to see ho your bundle differs to one that I generate. For reference, my output of |
Thanks a lot for your answer. Here is what I have done:
I will now compare my bundle with yours. |
My environment:
|
Got it. The problem is caused by long file path. It seems `Meteor deploy' silently fails when paths are too long. If I create my Meteor project closer to my root directory, it deploys like a charm. |
I confirm the above. Bundle comparison shows that all files deeper than ~12 nested folders in the file hierarchy are not present in my bundle. |
I added an answer to the SO question suggesting using shorter paths, but I will leave this issue open and investigate why the bundler is ignoring some paths (it shouldn't, and certainly shouldn't do ignore them without a warning or error). I'm really glad you have a work-around for now :) |
Great, thanks again. |
I did have a look but didn't spot anything obvious - but I'll have a better look after 0.9. |
Thanks. |
Soon :) |
Or this long discussion: It is reported that gitbash (tar) > 1.9 can deal with the long structure. |
Thanks for those links @peterennis It would be amusing if it weren't so sad. In this case though, it appears that although the node_modules stupidity is the initial cause in this case, I believe the underlying bug is with the process of generating the tarball. NPM lays down the files just fine (when using the --directory option). The good news is that the tarball process is much easier to debug/fix than npm. We currently use node-tar and as node/UV supports long file names it should be OK, and I really strongly do not want to depend on external utilities such as gitbash unless absolutely necessary. |
Aha, I've found the problem - fstream has a really nasty windows specific bug, and this is used when building tarballs (and possibly other things). |
Any chance this issue might be specific to Windows?
http://stackoverflow.com/questions/24209486/deploy-to-meteor-com-fails-with-error-cannot-find-module-websocket-driver
Thanks,
The text was updated successfully, but these errors were encountered: