dropbox-fs icon indicating copy to clipboard operation
dropbox-fs copied to clipboard

Cannot find module "dropbox-fs/promises"

Open tibor-kulcar opened this issue 2 years ago • 4 comments

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'

tibor-kulcar avatar Jan 06 '22 00:01 tibor-kulcar

Same here. @sallar are we missing something?

gamecubate avatar Jan 20 '22 21:01 gamecubate

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');

jmmanlupig avatar Jan 26 '22 15:01 jmmanlupig

Thanks @jmmanlupig .

gamecubate avatar Jan 26 '22 16:01 gamecubate

Sorry everyone. I will try to fix this.

sallar avatar Jan 26 '22 18:01 sallar