Urukhay Posted January 10, 2017 Posted January 10, 2017 (edited) Command like the: modules.exports = { "cmdt": (player) => { var f = require("../mysqlSaver"); f.mysqlSave(player); } } "mysqlSave" function is not called. Edited January 10, 2017 by Urukhay
Captien Posted January 10, 2017 Posted January 10, 2017 can you specify if mysqlSaver is a Npm or a File? If a file do var f = require("./mqsqlSaver.js"); If a npm just do var f = require("mysqlSave"); 1
Urukhay Posted January 11, 2017 Author Posted January 11, 2017 (edited) But why the node.js service had called variant above? I use the require (with .js) in the index.js and it not works. It's as if requires are not supported. Edited January 11, 2017 by Urukhay
Urukhay Posted January 12, 2017 Author Posted January 12, 2017 (edited) The problem has been solved. Edited January 12, 2017 by Urukhay
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now