webstudio-is / webstudio

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
https://webstudio.is
GNU Affero General Public License v3.0
5.4k stars 664 forks source link

Cannot find module '/workspaces/webstudio/packages /prisma-client/src/__generated__' imported from /workspaces/webstudio/packages/p risma-client/src/prisma.ts #4350

Closed thanax2n closed 1 month ago

thanax2n commented 1 month ago

when I running the Webstudio Project Using VS Code or without Devcontainer (I use wsl in window)

I found Error like this please help me

node:internal/modules/run_main:129
    triggerUncaughtException(
    ^
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/workspaces/webstudio/packages
/prisma-client/src/__generated__' imported from /workspaces/webstudio/packages/p
risma-client/src/prisma.ts
    at finalizeResolution (node:internal/modules/esm/resolve:265:11)
    at moduleResolve (node:internal/modules/esm/resolve:933:10)
    at defaultResolve (node:internal/modules/esm/resolve:1169:11)
    at nextResolve (node:internal/modules/esm/hooks:868:28)
    at resolveBase (file:///workspaces/webstudio/node_modules/.pnpm/tsx@4.19.1/n
ode_modules/tsx/dist/esm/index.mjs?1730075739228:2:3212)
    at async resolveDirectory (file:///workspaces/webstudio/node_modules/.pnpm/t
sx@4.19.1/node_modules/tsx/dist/esm/index.mjs?1730075739228:2:3578)
    at async resolve (file:///workspaces/webstudio/node_modules/.pnpm/tsx@4.19.1
/node_modules/tsx/dist/esm/index.mjs?1730075739228:2:4441)
    at async nextResolve (node:internal/modules/esm/hooks:868:22)
    at async Hooks.resolve (node:internal/modules/esm/hooks:306:24)
    at async handleMessage (node:internal/modules/esm/worker:196:18) {
  code: 'ERR_MODULE_NOT_FOUND',
  url: 'file:///workspaces/webstudio/packages/prisma-client/src/__generated__'
}
TrySound commented 1 month ago

Fixed, pull the repo to get updates