-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
'fs' not working #262
Comments
Problem same
add a line to main.js: const fs = require('fs') and |
this is a webpack problem, googling this error message brought many results, the usual solution is appearantly to add this to the webpack conf:
(See here, for example: pugjs/pug-loader#8 (comment)) ..which was already suggested in the previous issue #91. Did you actually try that? |
yes.. I tried that, and although webpack no longer complained, it still did not work... But you know what? I realized I was trying to use 'fs' in...the browser... oops... should that be the problem? fs in server makes more sense ;) |
That might be the problem as it can't work... Closing this as a "solution" was identified ;) |
Using this above code error has been solved but
|
Well, you replaced You cannot use |
It's not impossible if you are on a CEP VM, like the HTML5 Adobe Extension do. |
Well I don't really know what a CEP VM is, it's definitely not the usecase this template was built for. And generally this is a webpack problem, Vue won't solve that. |
After a lot of tests, I've found a simple solution to use the nodejs on the chrome machine: They run on a CEF, "Chromium Embedded Framework" (My mistake: not a CEP, not a VM). http://code.google.com/p/chromiumembedded/ |
Suppose to reopen issue #91. Breaking bug I think
The text was updated successfully, but these errors were encountered: