shrpne / vue-inline-svg

Dynamically loads an SVG source and inline <svg> element so you can manipulate the style of it
MIT License
175 stars 21 forks source link

export 'default' (imported as 'InlineSvg') was not found in 'vue-inline-svg' #52

Closed imransilvake closed 1 year ago

imransilvake commented 1 year ago

Since yesterday I am getting an error of import. Looks like coming from 3.1.1. Is something changed?

export 'default' (imported as 'InlineSvg') was not found in 'vue-inline-svg' (module has no exports)
Screenshot 2023-02-05 at 10 25 00
shrpne commented 1 year ago

Well, the one thing that changed, is "type": "module" field in package.json, but i think it should not affect importing vue-inline-svg

I can't reproduce the bug in vite3 and vite4

example with vite4 https://stackblitz.com/edit/vitejs-vite-osyaxy?file=src/App.vue

imransilvake commented 1 year ago

could it be that the bug exist in vue-cli with vue-cli? because I am using vue-cli

shrpne commented 1 year ago

what version of vue-cli?

imransilvake commented 1 year ago

Version:

Screenshot 2023-02-06 at 09 20 16
ejerskov commented 1 year ago

I have the same issue

9mm commented 1 year ago

Same issue

  "devDependencies": {
    "@babel/core": "^7.12.16",
    "@babel/eslint-parser": "^7.12.16",
    "@vue/cli-plugin-babel": "~5.0.0",
    "@vue/cli-plugin-eslint": "~5.0.0",
    "@vue/cli-plugin-router": "~5.0.0",
    "@vue/cli-service": "~5.0.0",
    "@vue/eslint-config-airbnb": "^6.0.0",
    "autoprefixer": "^10.4.2",
    "eslint": "^8.18.0",
    "eslint-plugin-import": "^2.25.3",
    "eslint-plugin-vue": "^9.1.0",
    "eslint-plugin-vuejs-accessibility": "^2.0.0",
    "postcss": "^8.4.6",
    "tailwindcss": "^2.2.19"
  }
shrpne commented 1 year ago

Should be fixed in v3.1.2