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:

Best Client Optimized Programming Language for Mobile Development?

Use Google's Dart language, which is Object-oriented, class-based and garbage-collected language with C-Style.  Dart can compile to eith...