DEV Community

Discussion on: Install Laravel with Vite support in DDEV (Docker)

Collapse
 
cosmo_attempts profile image
Cosmo Attempts

This is a useful article. However I hit the following error:

[plugin:vite:import-analysis] Failed to parse source for import analysis because the content contains invalid JS syntax. Install @vitejs/plugin-vue to handle .vue files.

Enter fullscreen mode Exit fullscreen mode

If this is useful to anyone, I had to also reference vue within the vite.config.js plugins:

import vue from "@vitejs/plugin-vue";

...

  plugins: [
    vue(),
    laravel({
      ...
Enter fullscreen mode Exit fullscreen mode