pkg Warning when running build scripts
Closed this issue · 2 comments
JeffreyBytes commented
When I run a build script (ie npm run-script build-win
), I get an error from pkg:
Warning Cannot resolve 'path.join(__dirname, '/process_watcher')'
C:\Users\PRIVATE\Documents\Coding\Projects\TouchPortal_Discord_Plugin\src\index.js
Dynamic require may fail at run time, because the requested file
is unknown at compilation time and not included into executable.
Use a string literal as an argument for 'require', or leave it
as is and specify the resolved file name in 'scripts' option.
1 file(s) moved.
Am I doing something wrong? Thanks!
spdermn02 commented
No nothing is going wrong. It is just a warning and doesn't seem to affect the build at all
JeffreyBytes commented
Thanks!