dropbox / dropbox/dropbox-sdk-js

Example does not work

Open
#1,113 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
970
Forks
353
Avg merge
9h 3m
Merged PRs (30d)
2

Description

**Describe the bug**
I am using the simple example with the client secret, but I get the following error:
Error [ERR_REQUIRE_ESM]: require() of ES Module /src/lib/dropbox/dropbox-api.js not supported.
Instead change the require of index.js in /src/lib/dropbox/dropbox-api.js to a dynamic import() which is available in all CommonJS modules.

**To Reproduce**
Use the simple example with the client secret

**Expected Behavior**
The example should produce an oauth token

**Actual Behavior**
An error occurs as described above on npm run dev

**Screenshots**
N/A

**Versions**
* What version of the SDK are you using? -> 10.34.0
* What version of the language are you using? -> which language?
* Are you using Javascript or Typescript? -> Javascript
* What platform are you using? (if applicable) -> express, node

**Additional context**
N/A

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.