-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Icon is not displaying. href is #undefined #462
Comments
There is no
None of the icon are displaying. I think it might issue with 'path' to the SVG files. All files location are starting like this |
Becuase of this issue Icon used in all the components are not working. please check and let me know |
You need to use |
I am using Vite for build. Can you please suggest me appropriate plugins? |
import { defineConfig, loadEnv } from 'vite';
import react from '@vitejs/plugin-react';
import svgLoader from 'vite-svg-loader';
import * as path from 'path';
// https://vitejs.dev/config/
export default ({ mode }) => {
// eslint-disable-next-line prettier/prettier
process.env = {
...process.env,
...loadEnv(mode, path.resolve(__dirname, 'src', 'environments')),
};
return defineConfig({
plugins: [
react(),
svgLoader({
defaultImport: 'raw',
}),
],
});
}; I am using above vite configuration. But still none of SVG icons showing. Please help me to solve this issue. @novykh |
The text was updated successfully, but these errors were encountered: