#Errors when executing 'yarn start'

1 messages · Page 1 of 1 (latest)

vernal agate
#

Hello team, I'm trying to run the Appsmith Client locally.
I'm using an Ubuntu VM and I followed the instructions from https://github.com/appsmithorg/appsmith/blob/release/contributions/ClientSetup.md
All commands seems to be working well but when I run the last ones "yarn install" and "yarn start" I started to see some warnings and errors.

Here some context about the environment that I'm using:
node -v
v16.15.0
npm --version
8.5.5
yarn --version
3.4.1
uname -a
Linux gtm-virtual-machine 5.19.0-32-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 30 17:03:34 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

I'm trying to start the client using the cloud server with:
sudo ./start-https.sh https://release.app.appsmith.com

Here part of the logs after run 'yarn install'

➤ YN0000: ┌ Resolution step
➤ YN0002: │ @blueprintjs/popover2@npm:0.5.0 [150d5] doesn't provide react-dom (p96c8e), requested by @blueprintjs/core
➤ YN0002: │ cypress-image-snapshot@npm:4.0.1 [150d5] doesn't provide jest (pe8d2c), requested by jest-image-snapshot
➤ YN0002: │ eslint-config-react-app@npm:7.0.1 [57d4f] doesn't provide @babel/plugin-transform-react-jsx (pd5140), requested by eslint-plugin-flowtype
➤ YN0002: │ react-spring@npm:9.4.1 doesn't provide zdog (p6c9d7), requested by @react-spring/zdog
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
➤ YN0000: └ Completed in 0s 444ms
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 1s 782ms
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed in 1s 132ms
➤ YN0000: Done with warnings in 3s 723ms
#

And here some of the error messages after run 'yarn start'

Failed to compile.

Module not found: Error: Package path ./App is not exported from package /home/user/Workspace/appsmith/app/client/node_modules/entities (see exports field in /home/user/Workspace/appsmith/app/client/node_modules/entities/package.json)
Did you mean './entities/App'?
Requests that should resolve in the current directory need to start with './'.
Requests that start with a name are treated as module requests and resolve within module directories (node_modules, /home/user/Workspace/appsmith/app/client/node_modules, /home/user/Workspace/appsmith/app/client/src).
If changing the source code is not an option there is also a resolve options called 'preferRelative' which tries to resolve these kind of requests in the current directory too.

ERROR in ./src/workers/common/DependencyMap/utils.ts 8:0-60
Module not found: Error: Can't resolve '@shared/ast' in '/home/user/Workspace/appsmith/app/client/src/workers/common/DependencyMap'
ERROR in src/workers/Evaluation/JSObject/index.ts:112:38
TS7031: Binding element 'paramName' implicitly has an 'any' type.

    110 |                 if (parsedElement.arguments) {
    111 |                   params = parsedElement.arguments.map(
  > 112 |                     ({ defaultValue, paramName }) => ({
        |                                      ^^^^^^^^^
    113 |                       key: paramName,
    114 |                       value: defaultValue,
    115 |                     }),

ERROR in src/workers/Linting/utils.ts:34:8
TS2307: Cannot find module '@shared/ast' or its corresponding type declarations.
    32 |   ECMA_VERSION,
    33 |   MemberExpressionData,
  > 34 | } from "@shared/ast";
       |        ^^^^^^^^^^^^^
    35 | import { getDynamicBindings } from "utils/DynamicBindingUtils";
    36 |
    37 | import {

Any thoughts? Thank you in advance.

naive nacelle
#

I think some where you might have used npm to install. Please only use yarn

#

I would suggest you remove the project and reclone it.

#

Then run yanrn cache clean.

#

Then from appsmith/app/client run yarn install

#

Then run sudo ./start-https.sh https://release.app.appsmith.com and finally yarn start

vernal agate
#

This is something that I've tried before, however it's something I tried again just to confirm the behavior.
I have to say that I have NGINX service installed and running locally also, so when I run
sudo ./start-https.sh https://release.app.appsmith.com
I get the following message:

nginx is /usr/sbin/nginx
mkdir: created directory '/home/user/Workspace/appsmith/app/client/nginx'
mkcert is /usr/local/bin/mkcert
mkcert is /usr/local/bin/mkcert
/home/user/Workspace/appsmith/app/client/nginx /home/user/Workspace/appsmith/app/client
The local CA is already installed in the system trust store! :thumbsup:
ERROR: no Firefox and/or Chrome/Chromium security databases found
Note: the local CA is not installed in the Firefox and/or Chrome/Chromium trust store.
Run "mkcert -install" for certificates to be trusted automatically :warning:
Created a new certificate valid for the following names :scroll:
 - "dev.appsmith.com"
The certificate is at "./dev.appsmith.com.pem" and the key at "./dev.appsmith.com-key.pem" :white_check_mark:
It will expire on 1 June 2025 :calendar_spiral:
/home/user/Workspace/appsmith/app/client

        Please populate the .env at the root of the project and run again
        Or add the environment variables defined in .env.example to the environment
        -- to enable features
    
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Unknown error)
nginx: [emerg] bind() to [::]:80 failed (98: Unknown error)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Unknown error)
nginx: [emerg] bind() to [::]:80 failed (98: Unknown error)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Unknown error)
nginx: [emerg] bind() to [::]:80 failed (98: Unknown error)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Unknown error)
nginx: [emerg] bind() to [::]:80 failed (98: Unknown error)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Unknown error)
nginx: [emerg] bind() to [::]:80 failed (98: Unknown error)
nginx: [emerg] still could not bind()
#

I guess this is because the port is already in use, so I stopped de NGINX service and ran the command again.

sudo ./start-https.sh https://release.app.appsmith.com
nginx is /usr/sbin/nginx
mkcert is /usr/local/bin/mkcert

        Please populate the .env at the root of the project and run again
        Or add the environment variables defined in .env.example to the environment
        -- to enable features
    
✅ Started NGINX
ℹ️  Stop with: nginx -c '/home/user/Workspace/appsmith/app/client/nginx/nginx.dev.conf' -s quit
🎉 https://dev.appsmith.com
#

after that I ran yarn start and I keep seeing the same errors.