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
How to reproduce it (as minimally and precisely as possible):
source man.ts
import Log4js from 'log4js';
require('log4js/lib/appenders/file')
require('log4js/lib/appenders/stdout')
Log4js.configure({
appenders:{ startBroker:{type:'file',filename:'Mosca.log'}},
categories:{default:{appenders:['startBroker'],level:'info'}}
});
let logger = Log4js.getLogger('start apps');
logger.info('hello apps');
compile
tsc
build
nexe main.js -t windows-x64-14.15.3
Preparation for distribution
Move the executable file to another directory for distribution
Before moving:/c/Users/xxxx/Desktop/aaaa/log4js-test
After moving:C:\Users\xxxx\Desktop\program\app
Anything else we need to know?:
Nothing.
Environment:
Platform(OS/Version):Windows 10 Pro 64bit
Nexe version:4.0.0-rc.2
The text was updated successfully, but these errors were encountered:
It's working correctly here on Linux using 4.0.0-rc.2, so not sure what the issue is unfortunately :-/
It might be worth trying a npm ci and a nexe --clean before trying again?
Something that might help debugging would be setting DEBUG='nexe:require' as an environment variable, as then nexe will log attempts to find the relevant modules, e.g.
What happened:
Error: Cannot find module 'flatted
What you expected to happen:
No errors
How to reproduce it (as minimally and precisely as possible):
source man.ts
compile
build
Preparation for distribution
Anything else we need to know?:
Nothing.
Environment:
The text was updated successfully, but these errors were encountered: