nativescript-nodeify icon indicating copy to clipboard operation
nativescript-nodeify copied to clipboard

Getting an error related to __dirname

Open nativescript-ninja opened this issue 8 years ago • 1 comments

I am having an issue trying to run the demo npm run demo.ios. I am getting a lot of Cycle link found. errors. It may be related to the version of node.js or npm.

I was going to patch it to work but I need some clarification first.

It seems that __dirname in patch-npm-packages is actually the working directory (instead of the directory that the script resides in). However, it is unclear what you assumed that __dirname would be when you authored the script. For instance, which directory were you trying to load here?

getPackageJsons(path.join(__dirname, ".."));

nativescript-ninja avatar Oct 06 '17 22:10 nativescript-ninja

IIRC that __dirname should be the folder of this plugin in your project, and .. is the node_modules folder (sibling of the app folder).

EddyVerbruggen avatar Oct 07 '17 15:10 EddyVerbruggen