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

Composition api only? #33

Open
lebadapetru opened this issue Jun 22, 2021 · 1 comment
Open

Composition api only? #33

lebadapetru opened this issue Jun 22, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@lebadapetru
Copy link

I've completely removed my option api from the build and thus it seems i cannot use your component. Is there any change to make it composition api only compatible?

The error i receive:

[Vue warn]: Property "svgElSource" was accessed during render but is not defined on instance. 
  at <InlineSvg src="build/media/icons/duotone/Navigation/Angle-double-left.svg" > 
  at <Aside> 
  at <Layout onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< undefined > > 
  at <RouterView> 
  at <App>

How i use the component:

import InlineSvg from "vue-inline-svg";

<inline-svg
            :src="'build/media/icons/duotone/Navigation/Angle-double-left.svg'"
          />

Package version: 3.0.0-beta.2

@shrpne
Copy link
Owner

shrpne commented Jun 24, 2021

For now, it uses options API like data, lifecycle hooks, and more. I believe there is no easy way to make it composition-api-only compatible. I guess inline-svg needs rewrite to work without options api.

@shrpne shrpne added the enhancement New feature or request label Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants