damianstasik / vite-svg

Use SVG files as Vue components with Vite
MIT License
106 stars 14 forks source link

[plugin:react-svg] path is not defined #73

Open seancheung opened 2 years ago

seancheung commented 2 years ago

path is not defined. This might be a typo. It should be idWithoutQuery

index.js


            if (isBuild) {
              cache.set(path, result);
            }
          }
yfrommelt commented 2 years ago

Source code is OK but publish version on NPM is not up-to-date

AsiiaKononenko commented 2 years ago

Hi I faced the same problem recently i added this to the tsconfig.json and it worked

"compilerOptions": { "types": ["vite/client"] }

serg06 commented 2 years ago

Related to #64. For workarounds see my comment here.

guguji5 commented 1 year ago

I fix the error with copying the npm source code into my project. it works.