basuke/vite-plugin-sveltekit-php-backend

Cannot find module 'fastcgi-kit'

KoljaL opened this issue · 0 comments

I cloned the repo, installed in the example folder all dependencies with composer and pnpm.
Installed and start PHP with brew, stated the dev server.

Root page woks well, but http://localhost:5174/php/apple throws an error:

Cannot find module 'fastcgi-kit' imported from 'virtual:vite-plugin-sveltekit-php-backend/shared-client'
Error: Cannot find module 'fastcgi-kit' imported from 'virtual:vite-plugin-sveltekit-php-backend/shared-client'
    at nodeImport (file:///Users/kolja/Downloads/vite-plugin-sveltekit-php-backend-main%202/example/node_modules/.pnpm/vite@4.0.0/node_modules/vite/dist/node/chunks/dep-ed9cb113.js:53277:25)
    at ssrImport (file:///Users/kolja/Downloads/vite-plugin-sveltekit-php-backend-main%202/example/node_modules/.pnpm/vite@4.0.0/node_modules/vite/dist/node/chunks/dep-ed9cb113.js:53200:20)
    at eval (virtual:vite-plugin-sveltekit-php-backend/shared-client:7:37)
    at async instantiateModule (file:///Users/kolja/Downloads/vite-plugin-sveltekit-php-backend-main%202/example/node_modules/.pnpm/vite@4.0.0/node_modules/vite/dist/node/chunks/dep-ed9cb113.js:53246:9

I although tried to install the package manually: pnpm install node-fastcgi, but still get this error.