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.38k stars 658 forks source link

Nanoid missing #4420

Closed DavithkbY closed 1 week ago

DavithkbY commented 1 week ago

After doing pnpm migrations migrate I get an error:

`> @webstudio-is/prisma-client@0.0.0 migrations /Users/davithakobyan/projects/webstudio/webstudio-poc/packages/prisma-client

./migrations-cli/cli.ts "--dev" "--cwd" "../../apps/builder" "migrate"

Starting 20230130160827_build_styles

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'nanoid' imported from /Users/davithakobyan/projects/webstudio/webstudio-poc/packages/prisma-client/prisma/migrations/20230130160827_build_styles/migration.ts Did you mean to import "nanoid/index.js"? at packageResolve (node:internal/modules/esm/resolve:854:9) at moduleResolve (node:internal/modules/esm/resolve:927:18) at defaultResolve (node:internal/modules/esm/resolve:1157:11) at nextResolve (node:internal/modules/esm/hooks:866:28) at resolveBase (file:///Users/davithakobyan/projects/webstudio/webstudio-poc/node_modules/.pnpm/tsx@4.19.1/node_modules/tsx/dist/esm/index.mjs?1731572043750:2:3212) at resolveDirectory (file:///Users/davithakobyan/projects/webstudio/webstudio-poc/node_modules/.pnpm/tsx@4.19.1/node_modules/tsx/dist/esm/index.mjs?1731572043750:2:3584) at resolveTsPaths (file:///Users/davithakobyan/projects/webstudio/webstudio-poc/node_modules/.pnpm/tsx@4.19.1/node_modules/tsx/dist/esm/index.mjs?1731572043750:2:4073) at resolve (file:///Users/davithakobyan/projects/webstudio/webstudio-poc/node_modules/.pnpm/tsx@4.19.1/node_modules/tsx/dist/esm/index.mjs?1731572043750:2:4447) at nextResolve (node:internal/modules/esm/hooks:866:28) at Hooks.resolve (node:internal/modules/esm/hooks:304:30)

/Users/davithakobyan/projects/webstudio/webstudio-poc/packages/prisma-client:  ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @webstudio-is/prisma-client@0.0.0 migrations: ./migrations-cli/cli.ts "--dev" "--cwd" "../../apps/builder" "migrate" Exit status 1  ELIFECYCLE  Command failed with exit code 1.`

This is fixed by doing pnpm i nanoid -w in the root directory.

TrySound commented 1 week ago

Fixed it here https://github.com/webstudio-is/webstudio/pull/4426