Closed ViktorVegh closed 1 year ago
I've just tested it and it seems to work properly. Which version of node/npm/yarn do you have?
did you find how to solve this?
This problem doesn't look like a problem with our codebase. Our CI proves that the repository builds correctly.
If that problem still appears, please find help on the Moralis forum.
New Bug Report
Checklist
Issue Description
I downloaded parse-server-migration and opened it as new project, after I run yarn install and followed steps but when I wanted to run yarn build terminal wrote me that: Cannot find module 'moralis' or its corresponding type declarations. I have tried to add moralis to project with yarn add moralis but after I run yarn install its showing same error.
Steps + code to reproduce
1 import Moralis from 'moralis';
src/auth/MoralisEthAdapter.ts:14:12 - error TS7006: Parameter 'result' implicitly has an 'any' type.
14 .then((result) => {
src/cloud/generated/evmApi.ts:5:41 - error TS2307: Cannot find module '@moralisweb3/common-core' or its corresponding type declarations.
5 import { MoralisError, Operation } from '@moralisweb3/common-core';
src/cloud/generated/evmApi.ts:16:11 - error TS2550: Property 'cause' does not exist on type 'Error'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2022' or later.
16 error.cause &&
src/cloud/generated/evmApi.ts:18:11 - error TS2550: Property 'cause' does not exist on type 'Error'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2022' or later.
18 error.cause.response &&
src/cloud/generated/evmApi.ts:21:33 - error TS2550: Property 'cause' does not exist on type 'Error'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2022' or later.
21 return JSON.stringify(error.cause.response.data);
src/cloud/generated/solApi.ts:5:41 - error TS2307: Cannot find module '@moralisweb3/common-core' or its corresponding type declarations.
5 import { MoralisError, Operation } from '@moralisweb3/common-core';
src/cloud/generated/solApi.ts:16:11 - error TS2550: Property 'cause' does not exist on type 'Error'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2022' or later.
16 error.cause &&
src/cloud/generated/solApi.ts:18:11 - error TS2550: Property 'cause' does not exist on type 'Error'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2022' or later.
18 error.cause.response &&
src/cloud/generated/solApi.ts:21:33 - error TS2550: Property 'cause' does not exist on type 'Error'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2022' or later.
21 return JSON.stringify(error.cause.response.data);
src/cloud/upgradeRequest.ts:2:36 - error TS2307: Cannot find module '@moralisweb3/common-core' or its corresponding type declarations.
2 import { Operation, toCamel } from '@moralisweb3/common-core';
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';