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

Unable to Dynamically Load SVGs with Plugin Update from 2.4.0 to 4.2.0 #106

Closed
maximepinard opened this issue Dec 27, 2023 · 0 comments
Closed

Comments

@maximepinard
Copy link

Description

Hello,

I am facing an issue while attempting to update the plugin from version 2.4.0 to 4.2.0. The problem specifically arises when trying to get a code snippet to work in 4.2.0.

Problem

I have a project with a directory system that dynamically imports SVGs using relative paths. Despite various attempts, I am unable to make my code work with 4.2.0. The code structure is extremely similar to the provided example here, where the useDynamicSvgImport hook is used to dynamically load SVGs.

Reproduction Steps

  1. Load the provided example.
  2. Change the plugin version from 2.4.0 to 4.2.0.
  3. Observe that the example fails to load the SVG.

Questions

  • Has the way of doing things changed in 4.2.0?
  • If yes, what is the recommended approach to achieve dynamic SVG loading in the updated version?

Any guidance or assistance on resolving this issue would be highly appreciated.

Thank you.

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

No branches or pull requests

1 participant