Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

iyashpal's avatar

Need help to setup typescript with @vitejs/plugin-vue

Can someone help me on settting up vue js with typescript support with vitejs? Documentation is not available for typescript setup.

0 likes
3 replies
iyashpal's avatar

Well, it's not working good with laravel vite plugin getting this error.

failed to load config from E:\www\technologies\Laravel\laravel-vite-typescript\vite.config.ts
error during build:
TypeError: vite.createFilter is not a function
    at vuePlugin (E:\www\technologies\Laravel\laravel-vite-typescript\node_modules\@vitejs\plugin-vue\dist\index.cjs:2395:23)
    at Object.<anonymous> (E:\www\technologies\Laravel\laravel-vite-typescript\vite.config.ts:36:35)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.require.extensions.<computed> [as .ts] (E:\www\technologies\Laravel\laravel-vite-typescript\node_modules\vite\dist\node\chunks\dep-c9998dc6.js:61998:20)
iyashpal's avatar

@manuelglez The error seems similar but my use case is different. I am getting this error while using Typescript instead of javascript files.

Please or to participate in this conversation.