vite-svg icon indicating copy to clipboard operation
vite-svg copied to clipboard

[plugin:react-svg] path is not defined

Open seancheung opened this issue 3 years ago • 4 comments

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

index.js


            if (isBuild) {
              cache.set(path, result);
            }
          }

seancheung avatar Jan 06 '22 06:01 seancheung

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

yfrommelt avatar Jan 18 '22 13:01 yfrommelt

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

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

AsiiaKononenko avatar Feb 07 '22 14:02 AsiiaKononenko

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

serg06 avatar Mar 13 '22 19:03 serg06

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

guguji5 avatar Feb 17 '23 09:02 guguji5