[SOLVED] Server icon missing

I deleted my server, and wanted to add a new one, but there is no server icon on the dashboard.
What (something obvious) am I missing?

If you no longer have any Moralis servers, you won’t be able to create another one. You will need to self host as Moralis moves away from hosting.

So i am trying to install the self-hosing.
The video at 7:19 tells to rund 'yarn build"
I ran it, and got this:

PS J:\_a\parse-server> yarn build
yarn run v1.22.19
$ tsc
src/index.ts:3:18 - error TS7016: Could not find a declaration file for module 'cors'. 'J:/_a/parse-server/node_modules/cors/lib/index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/cors` if it exists or add a new declaration (.d.ts) file containing `declare module 'cors';`

3 import cors from 'cors';
                   ~~~~~~


Found 1 error in src/index.ts:3

error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Nevermind, after running (as suggested)
npm i --save-dev @types/cors`
The build worked

1 Like