I have the following structure of folders:
Proyecto
--pruebainventario
----models
------Usuarios.js
--SB
----src
------components
--------screens
----------Register.js
Inside Usuarios.js I have some variables set, which are being exported using module.exports = usuario.
I am trying to retrieve those variables when running node Register.js from Usuarios.js using the following codes:
var usuario = require('./../../../../pruebainventario/models/Usuarios.js')
var usuario = require('../../../../pruebainventario/models/Usuarios.js')
None of them work. What can I do to retrieve the data from the other folder? Please I really need make this. Thanks