-
Notifications
You must be signed in to change notification settings - Fork 153
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
Vite config file in TS format is no more supported by Vite plugin v0.7.5 #218
Comments
@daniser Could you confirm that changing your |
@timacdonald yes, renaming to {
"compilerOptions": {
"allowJs": true,
"module": "ESNext",
"moduleResolution": "Node",
"jsx": "preserve",
"strict": true,
"isolatedModules": true,
"target": "ESNext",
"esModuleInterop": true,
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"skipLibCheck": true,
"paths": {
"@/*": ["./resources/js/*"]
}
},
"include": [
"resources/js/**/*.ts",
"resources/js/**/*.d.ts",
"resources/js/**/*.vue",
"vite.config.ts"
]
} |
I've noticed the same issue, seems like the type exports have changed or are removed, this does work fine in a ts file: import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers'; But importing the Vite plugin (
|
This should get it sorted: #220 We'll get it tagged shortly. You could likely manually make this change in you |
Vite Plugin Version
0.7.5
Laravel Version
10.10.0
Node Version
18.16.0
NPM Version
9.6.6
Operating System
Windows (WSL)
OS Version
10 Pro (22H2 19045.2965)
Web browser and version
Google Chrome Version 113.0.5672.93 (Official Build) (x86-64)
Running in Sail?
No
Description
TypeScript throws following error for some reason:
Steps To Reproduce
Use Laravel Vite plugin in Vite configuration file in TypeScript format (
vite.config.ts
).The text was updated successfully, but these errors were encountered: