node-webkittiddlywiki

Node-webkit require is undefined


I'm trying to run the server version of TW5 as a node-webkit app. I followed the good instructions stated here: https://groups.google.com/d/msg/tiddlywiki/WRnhjD6LUPQ/Zmikdvo0QA0J

When I do the last step I got the following errors on the Developer tools console of node-webkit:

Uncaught ReferenceError: require is not defined
Not allowed to load local resource: file:///C:/Users/.../node-webkit/TW5/index.htm data:text/html,chro…:1

The weird thing is: if I remove the index.html from the addres bar, then the TW5 folder is listed, and clicking on the index.html open the application as expected, working flawlessly. Could someone tell me where is the problem?

Thanks in advance.


Solution

  • The problem was at package.json. This is kind dumb, but I wrote index.htm instead of index.html. So if you are getting Not allowed to load local resource: error be sure to check your package.json for bad names.

    Regards