Newbie help
Closed this issue · 3 comments
pacomms commented
How do i use this on my server ? when i load the code into my folder from a git download it just scrolls cannot find module
Error: Unknown module 'lib/utils'
at Object.requireFn (:20840:23)
at main:1:45
at main:181:3
at Object.exports.evalCode (:15370:76)
at Object.requireFn (:20858:28)
at Object.exports.run (:20801:60)
Be kind total newbie here, just wanted to see your code to give me ideas :-)
Kyo0x commented
Yeah, can't seem to figure out why myself either, maybe Jonathan knows :)
pacomms commented
maybe its a tad odd, just wont find the modules at all, Jonathan help :-)
jordansafer commented
You need to use the rollup command to combine everything into 1 file. The command is npm run roll
, which will generate a file at dist/main.js-