#path file invalid
14 messages · Page 1 of 1 (latest)
tho i have config.json
this is my file path
@blissful warren ok well the file config.json isn't in the same directory as deploy.js. when you try to do require('./config.json') , the ./ part means it will search for the file in the same directory
so fix the path
how?
i dont understand😭
@safe horizon sorry for ping but pls tell me
it looks like deploy.js and config.json are in different folders
can you verify that they're in the same folder (src/)
Tag suggestion for @blissful warren:
- File paths explained in detail: learn more
.refers to the current directory..refers to the parent directory- Node path module: learn more
i believe u need this
require(../config.json)
@blissful warren see above ^^^^^^^^
thanks