Can't run the JS examples local server - can't find dist\Dropbox-sdk.js
See original GitHub issueDescribe 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:
- Created 2 years ago
- Comments:10 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 hereThe ‘;’ on windows is indeed an issue. Switching to ‘&’ was the fix for the build.