Code Monkey home page Code Monkey logo

Comments (7)

Aleksi44 avatar Aleksi44 commented on August 25, 2024 1

I had the same problem when wagtail released version 2.13, you can see it here.

Some hints that might help you :

  • all your static files are fetched? (no 404)
  • check your wagtail version (pip freeze)

If you still can't find it, I can help you if you create a public repository to reproduce the bug.

from wagtailsvg.

Aleksi44 avatar Aleksi44 commented on August 25, 2024 1

I'm glad you found the reason :)
I'll leave the ticket open if it helps anyone.

from wagtailsvg.

Aleksi44 avatar Aleksi44 commented on August 25, 2024

Hi @rafagarciac

Do you have javascript errors in the console?
Can you test your project with this version:

pip install wagtailsvg==0.0.11

It is possible that the problem is related to #7 for wagtail 2.13 support.

from wagtailsvg.

rafagarciac avatar rafagarciac commented on August 25, 2024

@Aleksi44
I don't have any JS errors in the console.
Why would I change the wagtailsvg version to 0.0.11 since there isn't any change related to SvgChooserBlock or AdminSvgChooser which is the error where I'm getting from... 🤔 ??

The problem related to #7 is for wagtail 2.13, so I don't think is related because my Wagtail version is 2.10.2.
Thanks for your quickly reply !

from wagtailsvg.

Aleksi44 avatar Aleksi44 commented on August 25, 2024

The SVG preview in Streamfield is handled differently in wagtail 2.13 than in previous versions.

wagtailsvg==0.0.14 uses the wagtail 2.13 implementation
wagtailsvg==0.0.11 uses the implementation of older versions of wagtail

from wagtailsvg.

rafagarciac avatar rafagarciac commented on August 25, 2024

I changed the wagtailsvg version from 0.0.14 to 0.0.11 and still does not work.
It does not include usefull change to SvgChooserBlock or AdminSvgChooser from the version that I had. (0.0.14).

Do you think is it something related about wagtail version itself 2.10.2 ?

@Aleksi44 Any idea ? 🤔

from wagtailsvg.

rafagarciac avatar rafagarciac commented on August 25, 2024

Hi @Aleksi44, I've already created a WagtailSVG Test Project, to run this project in isolation and it works perfectly !

I also I've detected that the bug I'm getting in the is related with the following wagtail package: wagtail-react-streamfield.
https://github.com/wagtail/wagtail-react-streamfield and isn't related with wagtailsvg itself. 👌🏼

For the other hand, I've updated the WagtailSVG Test Project with the package wagtail-react-streamfield, in order to check what is causing this problem and try to fix it as soon as possible.

Finally, I found this related issue wagtail-deprecated/wagtail-react-streamfield#26 on wagtail-react-streamfield package.

Thanks again.

from wagtailsvg.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.