Skip to content

Latest update 2.1.2 brakes the editor #108

@therealcljohn

Description

@therealcljohn

The latest update to version 2.1.2 brakes the editor (2.1.1 still works). The following error occurs:

runtime-core.esm-bundler.js:408 Uncaught DOMException: Failed to execute 'postMessage' on 'Window': #<Object> could not be cloned.
    at https://editor.unlayer.com/embed.js?2:1:15159
    at Proxy.forEach (<anonymous>)
    at Proxy.value (https://editor.unlayer.com/embed.js?2:1:15081)
    at Proxy.value (https://editor.unlayer.com/embed.js?2:1:13882)
    at Proxy.value (https://editor.unlayer.com/embed.js?2:1:13990)
    at Proxy.value (https://editor.unlayer.com/embed.js?2:1:29029)
    at Proxy.saveDesign (webpack-internal:///./node_modules/ts-loader/index.js??clonedRuleSet-40.use…s??ruleSet[0].use[0]!./src/views/Example.vue?vue&type=script&lang=ts:41:39)
    at onClick._cache.<computed>._cache.<computed> (webpack-internal:///./node_modules/ts-loader/index.js??clonedRuleSet-40.use…use[0]!./src/views/Example.vue?vue&type=template&id=1a31a320&ts=true:20:63)
    at callWithErrorHandling (webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:338:19)
    at callWithAsyncErrorHandling (webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:345:17)

This can be reproduced using the example editor from this repository and doing the following steps:

npm ci
npm run serve

Then open the application in the browser and hit the Save Design button. Then you will see this:

Bildschirmfoto_20241024_171238

The error occurs when using the exportHtml function of the editor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions