这是indexloc提供的服务,不要输入任何密码
Skip to content

Cannot find module 'fastcgi-kit'  #4

@KoljaL

Description

@KoljaL

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions