-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Builds empty nw:blank app on Windows/Linux #107
Comments
I've gotten this myself yesterday after I updated to 0.11.0 (I'll try again with 0.10.5 after I post this). Building for Windows on Mac, and then running on Windows, worked. @steffenmllr @gabepaez any idea what could be the cause? |
If someone could provide a test app which is not building, this would be great. |
Of course... my example project, which should fail to build, actually builds fine 😄 |
My own project is now building fine on Windows. I was actually using Also, see #110, it might be related to this issue. Not sure. I ran into it when creating an example app for this issue. |
Could you try again with the latest version? |
@adam-lynch Can you provide a little more detail as to how you got your Windows build working (versions, options for NwBuilder instance, etc.)? Experiencing the same issue ("nw:blank" loading) with the following: node-webkit: 0.11.5,
|
@rlee1121 |
@Thomas-B @adam-lynch thanks so much for the suggestions, this was indeed the issue! |
I'm also running into this issue - nw:blank on Windows. I'm using Sails.js, and I think I'm running into the path name length issue described above. However.. I can't just leave sails out of the node_modules folder - it's required for my app to function. Does anybody have any suggestions, other than removing whichever modules include long path names? Thanks! |
@marbemac Let's say there is one module which is a dependency of Sails.js which is a cause of long paths. An example path: Manually |
@adam-lynch It's a pain, but that works, thanks! 👍 The endless nesting in npm is tiresome. |
@nolanlawson still a problem with the latest version? |
@adam-lynch Is there any way to simplify this process? Is the 256 character length path a windows hard limitation? |
@Nitemaeric Not really, no. There are node modules out there for flattening your dependencies but as far as I know they're not reliable, because if two modules depend on two different versions of the same module, then they'll probably just take one version and discard the other. Yeah, more info here: http://stackoverflow.com/questions/1880321/why-does-the-260-character-path-length-limit-exist-in-windows. |
@adam-lynch Ok, thanks! I should get to flattening my dependencies then! |
I ran into this exact issue and it was a nightmare! I tried to do things manually but I had a whole bunch of problems with that, as my dependencies were pretty complex. In the end, I figured it out by using https://www.npmjs.com/package/flatten-packages As you said @adam-lynch, it does discard multiple versions of the same but as it happens, that was okay for me. It took some manual jiggering around but this does at least seem to be the cause and I thought I'd share what worked for me! |
Everyone, see Dealing with long paths |
npm@3 might also help this situation. It installs flat instead of nested by default, then nests when there is a version conflict. |
Closing this as I'm hoping the replies helped above or it's now solved as of npm@3 |
This was already filed on grunt-node-webkit-builder, but I think it might be more appropriate in this repo: nwjs/grunt-nw-builder#117.
Anybody seen this issue? Basically Windows and Linux are unbuildable. :(
The text was updated successfully, but these errors were encountered: