nwjs/nw.js

When using url in main, global object not available in page

hellozyemlya opened this issue · 3 comments

When using url in main, there is no global object and I cant import any node packages. Is it possible to return global object back?

Not sure I tottally understand your question. But maybe you didn't set node-remote correctly for whatever you are trying to do?
https://nwjs.readthedocs.io/en/stable/References/Manifest%20Format/#node-remote

In package.json, set "node-remote" field same as "main" field.

@hellozyemlya Without a minimal repro, this cannot be reproduced. Please include a package.json and an html or javascript file with the relevant parameters.