dropbox-fs
dropbox-fs copied to clipboard
Cannot find module "dropbox-fs/promises"
Hi, can you please help me with this error?
I'm trying to use promises, but when I try
var dfs = require('dropbox-fs/promises')({
apiKey: 'DROPBOX_API_KEY_HERE'
});
it throws me the error Cannot find module 'dropbox-fs/promises'
Same here. @sallar are we missing something?
Hi! It looks like the maintainer has published it in a dist
folder instead of being in the root folder.
As a result, require('dropbox-fs/readonly')
does not work as well.
Current workaround is to include the dist
folder like so:
const fs = require('dropbox-fs/dist/promises');
const fsReadonly = require('dropbox-fs/dist/readonly');
Thanks @jmmanlupig .
Sorry everyone. I will try to fix this.