Failed to resolve module URL from cloud

I am creating a React Native application and have tried simply:

var cloudinary = require('cloudinary');

However, I keep getting the error message:

Unable to resolve module url from node_modules/cloudinary/lib/config.js: Invalid directory /Users/node_modules/url

I tried many suggestions for the Github thread on this, including project recovery, however I still get the same error.

My problem is that this is due to how lodash or other modules are required. The same problem arose when I tried to require a passport, but not asynchronous.

What am I missing here? Any advice on what to look for when npm'ing files would be appreciated.

+4
source share

Source: https://habr.com/ru/post/1627239/


All Articles