laravel-react-i18n icon indicating copy to clipboard operation
laravel-react-i18n copied to clipboard

TypeError: Could not find a declaration file for module laravel-react-i18n/vite

Open initred opened this issue 9 months ago • 1 comments

Laravel 11 Vite 5.2

vite.config.ts in Error

TS7016: Could not find a declaration file for module laravel-react-i18n/vite. {$project}/node_modules/laravel-react-i18n/vite.js implicitly has an any type.

Do you have any plans to update the package according to Vite 5 version?

import react from "@vitejs/plugin-react"
import i18n from "laravel-react-i18n/vite" // error
import laravel from "laravel-vite-plugin"
import { defineConfig, PluginOption } from "vite"

export default defineConfig({
  plugins: [
    laravel({
      input: "resources/js/app.tsx",
      ssr: "resources/js/ssr.tsx",
      refresh: true,
    }),
    react(),
    i18n(),
  ],
})

initred avatar Apr 29 '24 02:04 initred