Problem with parse-server-migration (regarding @moralisweb3/parse-server)

Hi, I am following this tutorial (https://docs.moralis.io/docs/run-parse-server-locally). Last week I could set up my server without a problem, but today I keep getting errors when running the command “yarn build”. All errors appear to be because of this one:

"src/index.ts:10:29 - error TS2307: Cannot find module ‘@moralisweb3/parse-server’ or its corresponding type declarations.
10 import { streamsSync } from ‘@moralisweb3/parse-server’; "

Why may this be happening? I know the error has nothing to do with the setting up and configuration of both Redis and MongoDB, as last week my server was working fine. Instead it seems like it is a problem regarding Moralis, which I do not know how to solve.

Hopefully you can solve this for me,

Thank you and best regards,
Iñigo
~~~~~~~~~~~~~~~~~~~~~~~~~~~

is there a difference between last week and now in the code or somewhere else?

I have not made any changes, but Moralis as a team made some updates to the Morlais-JS-SDK repository that I am using.
The main problem is that the modules used can not be found when I type the command: “yarn build”. Therefore I think you may have change something that makes errors occur when following your tutorial, as when I follwed it a week ago it worked, but now I am getting errors.

Hope you can help me with this, thank ou and best regards!

Hey @inimartin,

did you by any chance install your dependencies with yarn install?

looks like based on your error the code cannot find module usually means that @moralisweb3/parse-server is not within your node_modules folder

Yes I installed the dependencies suing “yarn install”. Should I do anything different?

I agree that the problem seems to be that “@moralisweb3/parse-server” is not in my node-modules folder, but I followed the whole tutorial, using “yarn install” and the error keeps being there.

What should I do?

do you still have the folders from when it worked? can you use the same versions for dependencies as you used at that time in case that you still have that folder?

The problem is I am working with a partner so I sent him the folder. He made some changes to the frontend (html & css) on the client side (which should not affect the server) and when he sent me back the folder I executed again “yarn install” so I don’t have the same exact folder.

That is why as it gave me errors I cloned once again your github repository following your guide and did all over once again, but it also gave me the can not find @moralisweb3/parse-server error.

what are the exact steps that you do when you get that error?

In VSC I clone from Github your Moralis-Js-SDK repository. Once there I move to the parse-server-migration repository and type “yarn install”. Then I copy to the .env file the APIs keys, URIs and strings. Once I have done all that a type “yarn build” on the terminal. That is when the errors appear.

As I am stuck with this error I have tried your AWS tutorial.

When using AWS Elastic Beanstalk to deploy the self hosted moralis server, I get this error when clicking “create app”: “Invalid Parameter Combination
Unable to download from S3 location (Bucket: moralis-public-bucket Key: parse-server-migration-build.zip). Reason: Forbidden: S3Bucket=moralis-public-bucket, S3Key=parse-server-migration-build.zip”

How can I solve it?

I asked the team if that url with parse-server-migration-build.zip should still work now

Okey, please provide me with their answer once you know it. Thanks!

Hey @inimartin you can try with this new URL:
https://moralis-s3-bucket.s3.eu-west-1.amazonaws.com/parse-server-migration.zip

Updating docs too.

Cheers!

1 Like