Followed the video, did all the steps with integrating inkdrop, but the app won’t open when I make the necessary changes to the config.cson file. It gives me a config error window saying “failed to load config.cson” then a longer window “Failed to start app” must have done something wrong, just would like to know where. I am also using the blog post to make sure I didn’t miss anything, but it refuses to load regardless.
Update: I tried to remove the lines from the config file, it still crashed so I have to re-install.
I have re-installed the app so everything is back to default. I will redo the config file, but my big question is: should I be changing anything when inputting everything or keep it exactly how you have it.
Thank you I didn’t look at that documentation. I do have live: true in import.mjs, and “live-import”: “node --experimental-vm-modules tools/import.mjs” in package.json. Is it possible my updated dependencies had any impact on why it’s not updating in real time, meaning my versions are more recent compared to when you made the video.
Where does the log output to for me to see for sure, because it looks as if you are correct. Even when I manually save nothing gets sent through until I restart it. But nowhere gives me any errors for me to see why.
I followed along with your video to learn, so I was hoping to yield the same results. My .env file has the Debug set to
DEBUG=‘inkdrop:export:info,inkdrop:export:error’
And it doesn’t show anything except the last changes it pushed through. I will change it to the other way and see if it gives me any errors as to why its not updating in real time.
Update: So its registering that there is a change every time I wrote something and synced manually.
I scrolled through the entire log and didn’t see any of what you mentioned.
Sure I will try it and would you like me to send you the entire log when I am trying to send the changes?
UPDATE:
I updated my packages, live-import is sitting at 0.1.8 on my macbook after doing a update for all packages, and now I am trying to start it but I keep getting this.
TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11522:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async LiveExporter.callApi (file:///Users/davemills/Documents/astro/node_modules/@inkdropapp/live-export/lib/index.js:31:26)
at async LiveExporter.start (file:///Users/davemills/Documents/astro/node_modules/@inkdropapp/live-export/lib/index.js:277:22)
at async file:///Users/davemills/Documents/astro/tools/import.mjs:16:1 {
cause: Error: connect ECONNREFUSED 127.0.0.1:19840
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1571:16) {
errno: -61,
code: ‘ECONNREFUSED’,
syscall: ‘connect’,
address: ‘127.0.0.1’,
port: 19840
}
}
Node.js v20.1.0
error Command failed with exit code 1.
UPDATE #2, updated to 0.2.1 and its still giving me that error on starting it. completely not sure why.
UPDATE #3: After going through almost everything, it is now working again…except it’s still not updating in real time. I am very much loving how more detailed the debug output is, but there is still no real indication as to why its not updating in real time.
What I meant in my last reply is that when I make a change, the code you provided that I should be seeing when a change is made never comes on the screen, but that’s probably because its not taking the changes in real time.
Would you like me to post the log on here, or email it to you?