Skip to content
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

No overload matches this call. Type 'Plugin_2' is not assignable to type 'PluginOption'. #72

Open
issam-seghir opened this issue Dec 22, 2023 · 2 comments
Labels
working on it Task in progress

Comments

@issam-seghir
Copy link

issam-seghir commented Dec 22, 2023

image

My vite config :

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { ViteAliases } from "vite-aliases";
import svgr from "vite-plugin-svgr";


export default defineConfig({
    base: "/instagram-clone/",
    // Getting rid of hashes in generated filenames
    filenameHashing: true,
    build: {
        // change output location
        rollupOptions: {
            output: {
                assetFileNames: (assetInfo) => {
                    if (assetInfo.name.endsWith(".gif")) {
                        return "[name].[ext]";
                    }
                    return `[name].[hash].[ext]`;
                },
            },
        },
    },
    resolve: {
        extensions: [".js", ".jsx", ".ts", ".tsx", ".json"],
    plugins: [
        [react()],
        ViteAliases({
            dir: "src",
            prefix: "@",
            deep: true,
            depth: 2,
            adjustDuplicates: true,
            useConfig: true,
            /**
             * Disables any terminal output
             */
            silent: false,
        }) ,
        svgr({
            include: "**/*.svg",
        }),
    ],
});
@Osmon11
Copy link

Osmon11 commented Dec 28, 2023

+1

@Subwaytime
Copy link
Owner

Hey there, thanks for the report!
This should've been resolved a while ago.. 🤔
Currently it does not appear for me, but i will investigate and try to include a fix in the upcoming 0.12!

@Subwaytime Subwaytime added the working on it Task in progress label Jan 8, 2024
@Subwaytime Subwaytime mentioned this issue Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
working on it Task in progress
Projects
None yet
Development

No branches or pull requests

3 participants