cboulanger / zotero-sync-bookends Goto Github PK
View Code? Open in Web Editor NEWBookends Store for https://github.com/retorquere/zotero-sync
Bookends Store for https://github.com/retorquere/zotero-sync
Hi, I have set my environment variables and when I run npm test
as instructed, I receive the following result:
> @cboulanger/[email protected] test
> tsc && npx ts-node test.ts
TypeError: Cannot read properties of undefined (reading '30')
at Sync.login (/Users/josh/Documents/GitHub/zotero-sync-bookends/node_modules/@retorquere/zotero-sync/index.js:32:38)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at /Users/josh/Documents/GitHub/zotero-sync-bookends/test.ts:41:5
Can you help me troubleshoot this?
Also, I had bookends-api
working on my previous versions of Zotero and Bookends. Is it possible that that still works with updated versions if I can't get this working?
Hi, I'm almost done with my dissertation! Thanks for your help over the years. Do you have a patreon or paypal so I can send a little appreciation your way?
I'm trying to get zotero-sync-bookends up and running again on my M1 mac after a while. I don't know what happened to my previous setup because the api key and bookends db name were both at default in my local repo. Anyways...starting over.
reading through the readme and following instructions**
cd ../usr/bin/
export PATH=/Users/josh/node_modules:PATH
export PATH=/Users/josh/Documents/Bookends:$PATH
// not sure if this is necessary but I can't see how else it knows how to find the bookends dbcreated a new key in Zotero portal online
The following links are accessible:
edited lines 29 and 30 in /Users/josh/node_modules/@cboulanger/zotero-sync-bookends/test.ts
zotero_api_key = "loremipsum";
bookends_db_name = "2022-09-21 bookends db";
install node packages
cd /Users/josh/node_modules/@cboulanger/zotero-sync-bookends
npm install
run!
npm test
I get 6 errors from /src/index.ts.
> @cboulanger/[email protected] test
> tsc && npx ts-node test.ts
src/index.ts:105:7 - error TS18046: 'e' is of type 'unknown'.
105 e.lastJxaCmd = cmd;
~
src/index.ts:162:11 - error TS18046: 'e' is of type 'unknown'.
162 if (e.message.includes("-1728")) {
~
src/index.ts:313:11 - error TS18046: 'e' is of type 'unknown'.
313 if (e.message.includes("-1728")) {
~
src/index.ts:329:11 - error TS18046: 'e' is of type 'unknown'.
329 if (e.message.includes("-1728")) {
~
src/index.ts:378:17 - error TS18046: 'e' is of type 'unknown'.
378 if (e.message.includes("-1712")) {
~
src/index.ts:380:15 - error TS2322: Type 'unknown' is not assignable to type 'string | null'.
380 error = e;
~~~~~
Found 6 errors in the same file, starting at: src/index.ts:105
Here's the section of index.ts that I think it's referencing in the error:
zotero-sync-bookends/src/index.ts
Lines 349 to 398 in fea145e
As I understand it, you are doing a one-way zotero > bookends sync. Is it practical to do this the other way round, treat bookends as the "upstream" database, and mirror those changes to a zotero one? The use case is that I prefer to search/add/build references in bookends, but want to share them with others. Syncing to a zotero mirror would solve this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.