Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. TLDraw
  3. Exporting from TLDraw to PNG, JPG doesn't work

Exporting from TLDraw to PNG, JPG doesn't work

Scheduled Pinned Locked Moved TLDraw
9 Posts 4 Posters 2.3k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rchau
    wrote on last edited by
    #1

    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:45
    

    Has anyone experienced this or found a solution?

    1 Reply Last reply
    0
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      Not sure how TLDraw exports, if this is client side or server side. If client side, then this may be an upstream bug, otherwise do you see any errors, maybe missing dependencies on the server side app logs?

      1 Reply Last reply
      0
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #3

        I can reproduce this one . However, the upstream project has already moved on to tldraw 2.0 at this point . It's already open! Let's see if I can update it.

        1 Reply Last reply
        0
        • R Offline
          R Offline
          rchau
          wrote on last edited by rchau
          #4

          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!

          1 Reply Last reply
          0
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #5

            @rchau the error is not occuring in 2.0 but running 2.0 in a readonly docker container is quite a task.. Still figuring out how to do it.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              stevespaw
              wrote on last edited by
              #6

              @girish The TLDraw v2 is so much better in many ways. Have you made any progress on this? Thanks!

              girishG 1 Reply Last reply
              1
              • S stevespaw

                @girish The TLDraw v2 is so much better in many ways. Have you made any progress on this? Thanks!

                girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #7

                @stevespaw we will update it, but I don't have a timeline yet.

                1 Reply Last reply
                0
                • girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #8

                  @stevespaw it's updated now.

                  1 Reply Last reply
                  2
                  • girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote on last edited by
                    #9

                    The original issue of export is also fixed in the latest package (the latest package updated tldraw to 2.0)

                    1 Reply Last reply
                    2
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Bookmarks
                    • Search