I have a node-webkit project with a main.js
. At the very top, I have
var updater = require("./updater.js");
and I have a file named updater.js
in the same directory as main.js
. When I run the app, I get the error
Uncaught Error: Cannot find module './updater.js'
updater.js
has one line in it:
module.exports = "Hello!";
I have no idea why it cannot require the file. I have seen another project do the same thing. I can require
regular npm
modules just fine from the same main.js
.