Local deployment issues by yarn seed

I have already performed local deployment according to the documentation: plasmic/docs/contributing/platform/00-getting-started.md at master · plasmicapp/plasmic · GitHub . The database has been deployed using Docker. Now, when I execute yarn seed in the ./platform/wab directory, it encounters an error, displaying the following prompt:

Could you please tell me what the problem is? For such a large project, why do we encounter various issues even with the simplest deployment

You need to run “yarn gen:models” in platform/wab. Usually this is handled by running yarn setup-all in the root, the contribution guidelines can probably be improved.

Are you planning to work on a particular feature?

Thank you very much for your prompt reply. I am aiming to implement a feature similar to that of Shopify in my project. I have executed the command yarn setup-all in the root directory, but there is still an error with this command, as shown in the image below:

Although it reported an error, I still executed yarn seed under ./platform/wab. This time, the error is different from the previous one:

So there are still issues. How can I solve them

@maoyu_fan have you also ran yarn bootstrap?

and can you make sure your postgresql instance is up and running? there might’ve been an error inside container when initializing database

probably due to the missing .env inside platform/wab

@alexander_noel1 Thank you for your reply. I ran the command in the document: docker-compose up -d --no-deps plasmic-db. Currently, the process is as follows:

i have .env in inside platform/wab:

I’m looking at the documentation and have a question. The content in.env.example doesn’t match the content in the documentation. Have I made a mistake?

Oh i see, there’s one fix that i implemented but it haven’t been merged. I will let you know once i merge it, should be relatively fast

Thank you. I hope it can be done as soon as possible

If it’s simple, could you just tell me how to fix

@maoyu_fan can you try to run
yarn typeorm migration:run && yarn seed in your terminal in the wab folder?

@alex_noel Thank you for your reply. I can see that yarn typeorm migration:run && yarn seed is running normally now. Then I proceeded to the next step according to the documentation: yarn setup-all, but an error occurred, as shown below:

There seem to be some errors. Is it possible that there are still missing configurations? I have only configured the .env file under platform/wab for the entire project

the error doesn’t seem to be too informative but i see that it fails when attempting to build canvas-packages
Can you go to that folder and manually try to run yarn && yarn build --verbose and see what it outputs?

@alex_noel Thank you for your reply. I ran yarn && yarn build --verbose in the plasmic/platform/canvas-packages directory, and it seems to have the same error as before, with no other useful information. Could you please clone it and follow the documentation to execute it? This issue should be easily reproducible

Besides platform/wab/.env, are there any other environments that need to be configured

Hi @maoyu_fan, can you provide some information about your environment? e.g. mac/windows/linux, distribution, node version?

The issue is not reproducible on my mac or ubuntu machines.

@maoyu_fan @samuel_pullman same for me
It might be an issue related to node version, yarn

You can try installing deps through pnpm instead of yarn, that might potentially fix it

linux centos8,node v24.6.0

@samuel_pullman about your environment?Can you provide me with some references regarding node version and yarn

Can you help me with this? I’m not very familiar with Node. I executed pnpm and got an error prompt:

image

I suspect it might be related to the version of node. I would like to know the exact version that can run it. Could you please ask your team for me? Thank you

The error says to use yarn instead of pnpm.

Hi json, Did you watch the entire discussion session? The whole process was unsuccessful when using yarn