Search This Blog

Total Pageviews

ReferenceError: required is not defined

var dt = required('./DateFunction.js')
ReferenceError: required is not defined
    at Object.<anonymous> (c:\finder.js:2:10)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
    at Function.Module._load (module.js:491:3)
    at Function.Module.runMain (module.js:684:10)
    at startup (bootstrap_node.js:187:16)
    at bootstrap_node.js:608:3

Node js error. There is no module called "required".  Change to require.

var dt = require('filename')

No comments:

You are currently using plaintext http to connect.

Npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation must use TLS 1.2 or higher. S...