Exporting from TLDraw to PNG, JPG doesn't work
-
I'm running TLDraw on a 2GB Digital Ocean VPS managed via Cloudron. I've allocated 1GB memory to the TLDraw app, I believe the default was 256MB.
I am using the app on:
- desktop Firefox (MacOS)
- Brave Browser (Android)
Drawing shapes, adding images, exporting a .tldraw file all work fine. The problem was when I tried to export to a PNG, SVG or JPG. None of them worked, they all generated the following error in the browser console:
> Uncaught (in promise) TypeError: p is null > e index.mjs:15 > e index.mjs:15 > s runtime.js:45Has anyone experienced this or found a solution?
-
Hello, sorry for the late reply. I checked the Cloudron logs, unfortunately there was no error message when the PNG/JPG export failed. Here is a warning message I received during application startup a few days ago...not sure if it's relevant or related:
> Jun 13 20:29:11 @tldraw/www:start: $ next start > Jun 13 20:29:11 @tldraw/www:start: cache miss, executing 216fa10b451709c4 > Jun 13 20:29:11 @tldraw/www:start: warning Cannot find a suitable global folder. Tried these: "/usr/local, /usr/local/share/.yarn" > Jun 13 20:29:11 @tldraw/www:start: warning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-0". Jun 13 20:29:11 @tldraw/www:start: warning Skipping preferred cache folder "/usr/local/share/.cache/yarn" because it is not writable.@girish is this error occurring on TLDraw 2.0?
Thanks!
-
@girish The TLDraw v2 is so much better in many ways. Have you made any progress on this? Thanks!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login