You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1- create a directory named bg
2- create a test.js file and bg.js file in that directory.
4- write require('./test.js') inside of bg.js.
3- configure nwjs to load bg-script from bg/bg.js.
4- it should work without problem, but as you see it throws module not found error.
5- change the content of bg.js to require('./bg/test.js'), it will work, so wrong relative path.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
NWJS Version :
0.32
Expected behavior
This should work:
Actual behavior
But it doesn't, the error:
How to reproduce
1- create a directory named
bg
2- create a
test.js
file andbg.js
file in that directory.4- write
require('./test.js')
inside ofbg.js
.3- configure nwjs to load
bg-script
frombg/bg.js
.4- it should work without problem, but as you see it throws module not found error.
5- change the content of
bg.js
torequire('./bg/test.js')
, it will work, so wrong relative path.The text was updated successfully, but these errors were encountered: