Copy & Pasting is not working in self-hosted composition

I’m using Penpot with the suggested docker composition hosted on a personal NAS device.

I’ve come to notice that copy & paste for objects on my page appears to not work?

Repro scenario:

  • Create a new page
  • Create a board
  • Add objects to board
  • right-click board
  • click cut
  • click paste

The following appears in the webconsole (firefox):

Clipboard error: TypeError: can't access property "readText", a is undefined\

Stacktrace:

YSb webapi.cljs:136
    n_ main-workspace.ed5875f29-1756291401.js:590
    aVa core.cljs:31
    b core.cljs:188
    <anonymous> core.cljs:217
    next libs.js:787
    _next libs.js:787
    next libs.js:787
    next libs.js:787
    next libs.js:787
    next libs.js:787
    _next libs.js:787
    next libs.js:787
    next libs.js:787
    fpr libs.js:787
    next libs.js:787
    next libs.js:787
    next core.cljs:230
    a_ core.cljs:252
    b_ store.cljs:83
    b main-workspace.ed5875f29-1756291401.js:845
    F main-workspace.ed5875f29-1756291401.js:815
    bOe libs.js:30
    FOe</u$/< libs.js:30
    TDe libs.js:30
    u$ libs.js:30
    $Q libs.js:31
    M9t libs.js:31
clipboard.cljs:279:17
    xld clipboard.cljs:279
    rUa operators.cljs:185
    error libs.js:787
    hpr libs.js:787
    error libs.js:787
    _error libs.js:787
    error libs.js:787
    _error libs.js:787
    error libs.js:787
    _error libs.js:787
    error libs.js:787
    _error libs.js:787
    error libs.js:787
    rie libs.js:787
    _trySubscribe libs.js:787
    subscribe libs.js:787
    E libs.js:787
    _trySubscribe libs.js:787
    subscribe libs.js:787
    eA libs.js:787
    jg libs.js:787
    _trySubscribe libs.js:787
    subscribe libs.js:787
    f libs.js:787
    _ libs.js:787
    fpr libs.js:787
    next libs.js:787
    Cpr libs.js:787
    Lne libs.js:787
    _trySubscribe libs.js:787
    subscribe libs.js:787
    eA libs.js:787
    jg libs.js:787
    _trySubscribe libs.js:787
    subscribe libs.js:787
    rA libs.js:787
    _trySubscribe libs.js:787
    subscribe libs.js:787
    R7 libs.js:787
    _trySubscribe libs.js:787
    subscribe libs.js:787
    R7 libs.js:787
    _trySubscribe libs.js:787
    subscribe libs.js:787
    Wv core.cljs:319
    Xv core.cljs:343
    b core.cljs:193
    <anonymous> core.cljs:217
    next libs.js:787
    _next libs.js:787
    next libs.js:787
    next libs.js:787
    next libs.js:787
    next libs.js:787
    _next libs.js:787
    next libs.js:787
    next libs.js:787
    fpr libs.js:787
    next libs.js:787
    next libs.js:787
    next core.cljs:230
    a_ core.cljs:252
    b_ store.cljs:83
    b context_menu.cljs:678
    F context_menu.cljs:68
    bOe libs.js:30
    FOe</u$/< libs.js:30
    TDe libs.js:30
    u$ libs.js:30
    $Q libs.js:31
    M9t libs.js:31

Screenshot:

AFAICT this is also happening in Chrome:
Exception in the console:

clipboard.cljs:172 clipboard blocked: TypeError: Cannot read properties of undefined (reading 'writeText')
(anonymous) @ clipboard.cljs:172
clipboard.cljs:279 Clipboard error: TypeError: Cannot read properties of undefined (reading 'readText')
1 Like

I have the same problem in version 2.10, running in Microsoft Edge

clipboard.cljs:173 clipboard blocked: TypeError: Cannot read properties of undefined (reading ‘writeText’)
(anonymous) @ clipboard.cljs:173
(anonymous) @ operators.cljs:185
error @ libs.js?ts=1759146059754:787
jsr @ libs.js?ts=1759146059754:787
error @ libs.js?ts=1759146059754:787
qsr @ libs.js?ts=1759146059754:787
next @ libs.js?ts=1759146059754:787
next @ libs.js?ts=1759146059754:787
qsr @ libs.js?ts=1759146059754:787
next @ libs.js?ts=1759146059754:787
next @ libs.js?ts=1759146059754:787
qsr @ libs.js?ts=1759146059754:787
next @ libs.js?ts=1759146059754:787
next @ libs.js?ts=1759146059754:787
qsr @ libs.js?ts=1759146059754:787
next @ libs.js?ts=1759146059754:787
HB.a.subscribe.Br.complete @ libs.js?ts=1759146059754:787
Hsr @ libs.js?ts=1759146059754:787
complete @ libs.js?ts=1759146059754:787
p @ libs.js?ts=1759146059754:787
complete @ libs.js?ts=1759146059754:787
Hsr @ libs.js?ts=1759146059754:787
complete @ libs.js?ts=1759146059754:787
(anonymous) @ libs.js?ts=1759146059754:787
_trySubscribe @ libs.js?ts=1759146059754:787
subscribe @ libs.js?ts=1759146059754:787
Zw @ libs.js?ts=1759146059754:787
(anonymous) @ libs.js?ts=1759146059754:787
_trySubscribe @ libs.js?ts=1759146059754:787
subscribe @ libs.js?ts=1759146059754:787
HB @ libs.js?ts=1759146059754:787
(anonymous) @ libs.js?ts=1759146059754:787
_trySubscribe @ libs.js?ts=1759146059754:787
subscribe @ libs.js?ts=1759146059754:787
(anonymous) @ libs.js?ts=1759146059754:787
_trySubscribe @ libs.js?ts=1759146059754:787
subscribe @ libs.js?ts=1759146059754:787
(anonymous) @ libs.js?ts=1759146059754:787
_trySubscribe @ libs.js?ts=1759146059754:787
subscribe @ libs.js?ts=1759146059754:787
(anonymous) @ libs.js?ts=1759146059754:787
_trySubscribe @ libs.js?ts=1759146059754:787
subscribe @ libs.js?ts=1759146059754:787
(anonymous) @ libs.js?ts=1759146059754:787
_trySubscribe @ libs.js?ts=1759146059754:787
subscribe @ libs.js?ts=1759146059754:787
(anonymous) @ libs.js?ts=1759146059754:787
_trySubscribe @ libs.js?ts=1759146059754:787
subscribe @ libs.js?ts=1759146059754:787
(anonymous) @ libs.js?ts=1759146059754:787
_trySubscribe @ libs.js?ts=1759146059754:787
subscribe @ libs.js?ts=1759146059754:787
(anonymous) @ libs.js?ts=1759146059754:787
_trySubscribe @ libs.js?ts=1759146059754:787
subscribe @ libs.js?ts=1759146059754:787
PENPOT.kv @ core.cljs:319
PENPOT.lv @ core.cljs:343
b @ core.cljs:193
(anonymous) @ core.cljs:217
next @ libs.js?ts=1759146059754:787
next @ libs.js?ts=1759146059754:787
next @ libs.js?ts=1759146059754:787
next @ libs.js?ts=1759146059754:787
next @ libs.js?ts=1759146059754:787
next @ libs.js?ts=1759146059754:787
next @ libs.js?ts=1759146059754:787
next @ libs.js?ts=1759146059754:787
next @ libs.js?ts=1759146059754:787
qsr @ libs.js?ts=1759146059754:787
next @ libs.js?ts=1759146059754:787
next @ libs.js?ts=1759146059754:787
z.next @ core.cljs:230
xJ.a
@ core.cljs:252
PENPOT.aK.b @ store.cljs:83
onClick @ context_menu.cljs:153
eval @ context_menu.cljs:68
Bxe @ libs.js?ts=1759146059754:30
(anonymous) @ libs.js?ts=1759146059754:30
GCe @ libs.js?ts=1759146059754:30
PK @ libs.js?ts=1759146059754:30
SJ @ libs.js?ts=1759146059754:31
U4t @ libs.js?ts=1759146059754:31

1 Like