You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 27, 2021. It is now read-only.
So I'm new to node.js apps, but after two weekends of fiddling around:
-the reporter-dashboard-app now runs locally
-dropbox seems to be configured properly
-database is up and running, connected and has data from one .json-file
BUT: Do I get this right that you can only import a single .json-file named EXACTLY "reporter-export.json"?
Because everytime I try to import all the reports (hundreds named like this: "YYYY-MM-DD-reporter-export.json") from the reporter-app on the phone from \Dropbox\Apps\Reporter-App via the "npm run dropbox-import"-command, I get the following error in the command line (and in the log-file attached):
=======================
START OF COMMAND LINE OUTPUT
E:\DumpProjects\ReporterAppDashboard\reporter-dashboard-master\reporter-dashboard-master>npm run dropbox-import
E:\DumpProjects\ReporterAppDashboard\reporter-dashboard-master\reporter-dashboard-master\data\dropbox-load.js:11
const dbx = new Dropbox({ accessToken: process.env.DROPBOX_TOKEN });
^
TypeError: Dropbox is not a constructor
at Object. (E:\DumpProjects\ReporterAppDashboard\reporter-dashboard-master\reporter-dashboard-master\data\dropbox-load.js:11:13)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:754:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dropbox-import: node ./data/dropbox-load
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dropbox-import script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\johannes\AppData\Roaming\npm-cache_logs\2019-05-12T05_33_11_964Z-debug.log
So I'm new to node.js apps, but after two weekends of fiddling around:
-the reporter-dashboard-app now runs locally
-dropbox seems to be configured properly
-database is up and running, connected and has data from one .json-file
BUT: Do I get this right that you can only import a single .json-file named EXACTLY "reporter-export.json"?
Because everytime I try to import all the reports (hundreds named like this: "YYYY-MM-DD-reporter-export.json") from the reporter-app on the phone from \Dropbox\Apps\Reporter-App via the "npm run dropbox-import"-command, I get the following error in the command line (and in the log-file attached):
=======================
START OF COMMAND LINE OUTPUT
E:\DumpProjects\ReporterAppDashboard\reporter-dashboard-master\reporter-dashboard-master\data\dropbox-load.js:11
const dbx = new Dropbox({ accessToken: process.env.DROPBOX_TOKEN });
^
TypeError: Dropbox is not a constructor
at Object. (E:\DumpProjects\ReporterAppDashboard\reporter-dashboard-master\reporter-dashboard-master\data\dropbox-load.js:11:13)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:754:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dropbox-import:
node ./data/dropbox-load
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dropbox-import script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\johannes\AppData\Roaming\npm-cache_logs\2019-05-12T05_33_11_964Z-debug.log
======================
END OF COMMAND LINE OUTPUT
2019-05-12T05_33_11_964Z-debug.log
The text was updated successfully, but these errors were encountered: