vite-svg
vite-svg copied to clipboard
[plugin:react-svg] path is not defined
path
is not defined. This might be a typo. It should be idWithoutQuery
index.js
if (isBuild) {
cache.set(path, result);
}
}
Source code is OK but publish version on NPM is not up-to-date
Hi I faced the same problem recently i added this to the tsconfig.json and it worked
"compilerOptions": { "types": ["vite/client"] }
Related to #64. For workarounds see my comment here.
I fix the error with copying the npm source code into my project. it works.