vue-inline-svg icon indicating copy to clipboard operation
vue-inline-svg copied to clipboard

vue 3.3.3 not working

Open fabry24 opened this issue 1 year ago • 1 comments

Hello, When I change version of vue to 3.3.3, vue-inline-library stop working. <InlineSvg :src="require('./assets/arrow.svg')" /> throws error like

image

I have basic vue-cli app with only one library (vue-inline-svg) and with vue version 3.3.3

Could you inspect this problem?

Thank you.

fabry24 avatar May 19 '23 06:05 fabry24

Problem is confirmed also in Vue 3.3.4.

UPD: Resolved by updating to version vue-inline-svg 3.1.2. Mine was limited to the major version 2 in the package.json. Version 2 uses render(createElement ) which is deprecated in Vue 3 but worked for some reason till Vue 3.2.x

nikriaz avatar Jul 05 '23 14:07 nikriaz

@nikriaz thank you, i agree that it is probably caused by incompatible versions, vue@2 should be used with vue-inline-svg@2 and vue@3 should be used with vue-inline-svg@3

shrpne avatar Jun 10 '24 22:06 shrpne