Open Paolo-Oliverio opened 1 month ago
what I tried kfile.js:
let c = require('./test.js'); c();
./test.js
module.exports = function() { console.log("test.js module executed"); };
error : TypeError: Missing internal module './test.js' at nativeModuleRequire (node:internal/bootstrap/loaders:340:19)
also tryed to require with absolute path
let path = require('path'); let c = require(path.resolve(__dirname, './test.js')); c();
same error but with full path.
what I tried kfile.js:
./test.js
error : TypeError: Missing internal module './test.js' at nativeModuleRequire (node:internal/bootstrap/loaders:340:19)
also tryed to require with absolute path
same error but with full path.