Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wagtailcodeblock is broken in wagtail 4.2. #35

Closed
lunaluxie opened this issue Feb 11, 2023 · 0 comments · Fixed by #36
Closed

Wagtailcodeblock is broken in wagtail 4.2. #35

lunaluxie opened this issue Feb 11, 2023 · 0 comments · Fixed by #36

Comments

@lunaluxie
Copy link

When trying to use wagtailcodeblock in a streamfield, in the admin, I get the following Javascript error which prevents the streamfield from loading.

It worked fine in wagtail 4.1, but it's broken in 4.2.

Uncaught TypeError: Class constructor g cannot be invoked without 'new'
    at new CodeBlockDefinition (wagtailcodeblock.js:2:60)
    at t.value (VM90 telepath.js:1:3635)
    at VM90 telepath.js:1:3030
    at Array.map (<anonymous>)
    at t.value (VM90 telepath.js:1:3004)
    at VM90 telepath.js:1:3030
    at Array.map (<anonymous>)
    at t.value (VM90 telepath.js:1:3004)
    at VM90 telepath.js:1:3030
    at Array.map (<anonymous>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant