Hi, I try to include my rules.json file in my node script.Here is the snippet: var json = require("rules.json"); console.log(json);The problem is, when I execute the script, the console returns "Cannot find module 'rules.json'"Any idea ? Thanks a lot :)
Submitted April 12, 2016 at 08:54AM by doddoreul
No comments:
Post a Comment