fahmidme / web3-transact

A Next.JS project with web3 capabilities
0 stars 0 forks source link

Great job, can you help me ? #1

Open jinspe opened 2 years ago

jinspe commented 2 years ago

Hi Fahmid! Thank you so much for your submission, I really liked what you did and how you documented it. It was smart to use Moralis instead of implementing the auth signature verification from scratch. Great job with next auth it really shows that you have experience with next.js. Unfortunately I had a build error when trying your app locally.

yarn next build         
yarn run v1.22.19
$ /Users/cbs/Documents/code/qwestive/applicants/web3-transact/node_modules/.bin/next build
info  - Loaded env from /Users/cbs/Documents/code/qwestive/applicants/web3-transact/.env
info  - SWC minify release candidate enabled. https://nextjs.link/swcmin

./src/pages/index.tsx
76:7  Warning: 'TechnologyCard' is assigned a value but never used.  @typescript-eslint/no-unused-vars

info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
info  - Linting and checking validity of types ...Failed to compile.

./src/pages/_app.tsx:26:8
Type error: Type '{ children: Element; serverUrl: string | undefined; appId: string | undefined; }' is not assignable to type 'IntrinsicAttributes & MoralisProviderProps'.
  Type '{ children: Element; serverUrl: string | undefined; appId: string | undefined; }' is not assignable to type 'MoralisProviderInitializedProps'.
    Types of property 'appId' are incompatible.
      Type 'string | undefined' is not assignable to type 'string'.
        Type 'undefined' is not assignable to type 'string'.

  24 |   return (
  25 |     <WagmiConfig client={client}>
> 26 |       <MoralisProvider
     |        ^
  27 |         serverUrl={process.env.NEXT_PUBLIC_MORALIS_SERVER_URL}
  28 |         appId={process.env.NEXT_PUBLIC_MORALIS_APP_ID}>
  29 |         <SessionProvider session={pageProps.session} refetchInterval={0}>

> Build error occurred
Error: Call retries were exceeded
    at ChildProcessWorker.initialize (/Users/cbs/Documents/code/qwestive/applicants/web3-transact/node_modules/next/dist/compiled/jest-worker/index.js:1:11661)
    at ChildProcessWorker._onExit (/Users/cbs/Documents/code/qwestive/applicants/web3-transact/node_modules/next/dist/compiled/jest-worker/index.js:1:12599)
    at ChildProcess.emit (node:events:513:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) {
  type: 'WorkerError'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Can you help me with this issue? Thanks again for your application! looking forward learning more about you.

fahmidme commented 2 years ago

Hello,

I was under the impression that this would be run using npm run dev only, which is why I looked past some TypeScript errors.

I have now fixed the errors and pushed them into my latest commits.

Have a look!

Looking forward to talking more :)

Fahmid

On Mon, Sep 19, 2022 at 7:55 AM jinspe @.***> wrote:

Hi Fahmid! Thank you so much for your submission, I really liked what you did and how you documented it. It was smart to use Moralis instead of implementing the auth signature verification from scratch. Great job with next auth it really shows that you have experience with next.js. Unfortunately I had a build error when trying your app locally.

yarn next build yarn run v1.22.19 $ /Users/cbs/Documents/code/qwestive/applicants/web3-transact/node_modules/.bin/next build info - Loaded env from /Users/cbs/Documents/code/qwestive/applicants/web3-transact/.env info - SWC minify release candidate enabled. https://nextjs.link/swcmin

./src/pages/index.tsx 76:7 Warning: 'TechnologyCard' is assigned a value but never used. @typescript-eslint/no-unused-vars

info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules info - Linting and checking validity of types ...Failed to compile.

./src/pages/_app.tsx:26:8 Type error: Type '{ children: Element; serverUrl: string | undefined; appId: string | undefined; }' is not assignable to type 'IntrinsicAttributes & MoralisProviderProps'. Type '{ children: Element; serverUrl: string | undefined; appId: string | undefined; }' is not assignable to type 'MoralisProviderInitializedProps'. Types of property 'appId' are incompatible. Type 'string | undefined' is not assignable to type 'string'. Type 'undefined' is not assignable to type 'string'.

24 | return ( 25 |

26 | <MoralisProvider | ^ 27 | serverUrl={process.env.NEXT_PUBLIC_MORALIS_SERVER_URL} 28 | appId={process.env.NEXT_PUBLIC_MORALIS_APP_ID}> 29 |

Build error occurred Error: Call retries were exceeded at ChildProcessWorker.initialize (/Users/cbs/Documents/code/qwestive/applicants/web3-transact/node_modules/next/dist/compiled/jest-worker/index.js:1:11661) at ChildProcessWorker._onExit (/Users/cbs/Documents/code/qwestive/applicants/web3-transact/node_modules/next/dist/compiled/jest-worker/index.js:1:12599) at ChildProcess.emit (node:events:513:28) at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) { type: 'WorkerError' } error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Can you help me solve this issue? Thanks again for your application! looking forward learning more about you.

— Reply to this email directly, view it on GitHub https://github.com/fahmidme/web3-transact/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEBKLBZEJKC5JJBY4NHUKSDV7BIBXANCNFSM6AAAAAAQQBBUPQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>