When using url in main, global object not available in page
hellozyemlya opened this issue · 3 comments
hellozyemlya commented
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?
bluthen commented
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
fgt1t5y commented
In package.json, set "node-remote" field same as "main" field.
ayushmanchhabra commented
@hellozyemlya Without a minimal repro, this cannot be reproduced. Please include a package.json and an html or javascript file with the relevant parameters.