Join the Webstudio community

Updated 2 years ago

Strange Error During Webstudio Installation

At a glance

A community member is facing an issue with the installation of Webstudio, specifically when running pnpm build. They are getting an error related to the "AuthorizationRelation" constant not being initialized. The community members discuss the issue, with one suggesting it might be related to the Windows operating system, as they have not tested the setup on Windows. Another community member with Windows 10 confirms that the installation works fine on their system. The discussion also mentions a monorepo installation issue, and a link to a related GitHub repository is provided.

Useful resources
Hi anybody online??

I am facing a strange problem with installation ( trying webstudio for first time)

When I run pnpm build it does every step till prisma client build with I get following error log in console

Prisma schema loaded from prisma\schema.prisma
@webstudio-is/prisma-client:build:
@webstudio-is/prisma-client:build: βœ” Generated Prisma Client (4.14.0 | library) to .\src__generated in 295ms@webstudio-is/prisma-client:build: You can now start using Prisma Client in your code. Reference: @webstudio-is/prisma-client:build: ```@webstudio-is/prisma-client:build: import { PrismaClient } from './src/generated'@webstudio-is/prisma-client:build: const prisma = new PrismaClient()@webstudio-is/prisma-client:build: ```@webstudio-is/prisma-client:build: X [ERROR] The constant "AuthorizationRelation" must be initialized@webstudio-is/prisma-client:build:@webstudio-is/prisma-client:build: src/generated__/index.d.ts:299:13:
@webstudio-is/prisma-client:build: 299 β”‚ export const AuthorizationRelation: {
@webstudio-is/prisma-client:build: β•΅ ~~~~~
B
A
G
16 comments
What OS and node version do you use?
hi,

windows 11
node 18.16.1
Do you use linux subsystem?
Must be it. Non of us have windows to test setup. So i guess some linux specific stuff does not work here.
Okay.. will try on some linux system
thanks for quick reply
but would still prefer if some knows how it can work with windows
I bet something to do with slash in path
in build-package script
Plain Text
      (noGeneratedAsEntries && rel.includes("__generated__/"))
Hey @TrySound I have windows 10 and I have tried installing the package.. it works perfectly on my computer
Great @Gohar Akram! Have you tried to run "pnpm build"?
I tried the basic installation with the exe file.. installed fine.. happy to test with a reinistall using a different process πŸ™ŒπŸ»
The issue is with our monorepo installation
Add a reply
Sign up and join the conversation on Discord