Skip to content

Can't run the JS examples local server - can't find dist\Dropbox-sdk.js #621

Description

@ciufudean

Describe the bug
I am following the instructions at https://github.com/dropbox/dropbox-sdk-js/tree/main/examples/javascript to run the examples server.
node server.js crashes with

e:\temp\dropbox-sdk-js\examples\javascript>node server.js
e:\temp\dropbox-sdk-js\node_modules\rollup-endpoint\index.js:15
    throw Error('[rollup-endpoint] File does not exist: ' + options.entry);
    ^

Error: [rollup-endpoint] File does not exist: e:\temp\dropbox-sdk-js\dist\Dropbox-sdk.js
    at Object.exports.serve (e:\temp\dropbox-sdk-js\node_modules\rollup-endpoint\index.js:15:11)
    at Object.<anonymous> (e:\temp\dropbox-sdk-js\examples\javascript\server.js:12:10)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47

Versions

  • What version of the SDK are you using? 9.6.0
  • What version of the language are you using? node v14.16.0
  • Are you using Javascript or Typescript? JS
  • What platform are you using? (if applicable) Windows 10

Additional context
Add any other context about the problem here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions