question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ciufudeancommented, Apr 16, 2021

I found the cause. Your build:xx npm scripts are using ; as a command separator, while on Windows this is & or &&. And a few solutions here

0reactions
matrix75commented, Sep 15, 2022

The ‘;’ on windows is indeed an issue. Switching to ‘&’ was the fix for the build.

Read more comments on GitHub >

github_iconTop Results From Across the Web

authenticate example using javascript sdk problem
My product is like a wifi router, or nas, user can use browser to open product setting page if via local network, and...
Read more >
node.js - Facing Error: Cannot find module 'C:\Users\DELL ...
For me this error occurred due to incorrect path specified. Initially, I was trying this path "C:\Users\abc\Documents\VS CODE\JS> node ...
Read more >
Hands-on Scala.js - Haoyi's Programming Blog
The quickest way to get started with Scala.js is to git clone workbench-example-app, go into the repository root, and run sbt ~fastOptJS
Read more >
JavaScript - Developers - Dropbox.com
Dropbox for JavaScript. Here's our JavaScript SDK for API v2, which helps you easily integrate Dropbox into your JavaScript app.
Read more >
dropbox - UNPKG
The CDN for dropbox. ... dropbox/dist/Dropbox-sdk.js.map. Version: ... This endpoint can't be called on a team member or admin's behalf.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found