While running the tutorial “simple-nextjs-demo” I get the error (see below) but as I can tell it is correctly set in the evn.local file.
What am I missing?
error - MoralisError [Moralis SDK API Error]: [A0003] apiKey is not set
at EndpointResolver.createHeaders (J:_a\simple-nextjs-demo\node_modules@moralisweb3\api-utils\lib\resolvers\EndpointResolver.js:158:19)
at EndpointResolver. (J:_a\simple-nextjs-demo\node_modules@moralisweb3\api-utils\lib\resolvers\EndpointResolver.js:64:47)
at step (J:_a\simple-nextjs-demo\node_modules@moralisweb3\api-utils\lib\resolvers\EndpointResolver.js:33:23)
at Object.next (J:_a\simple-nextjs-demo\node_modules@moralisweb3\api-utils\lib\resolvers\EndpointResolver.js:14:53)
at J:_a\simple-nextjs-demo\node_modules@moralisweb3\api-utils\lib\resolvers\EndpointResolver.js:8:71
at new Promise ()
at __awaiter (J:_a\simple-nextjs-demo\node_modules@moralisweb3\api-utils\lib\resolvers\EndpointResolver.js:4:12)
at EndpointResolver.get (J:_a\simple-nextjs-demo\node_modules@moralisweb3\api-utils\lib\resolvers\EndpointResolver.js:55:47)
at Object.EndpointResolver.fetch [as getNativeBalance] (J:_a\simple-nextjs-demo\node_modules@moralisweb3\api-utils\lib\resolvers\EndpointResolver.js:115:34)
at getServerSideProps (webpack-internal:///./pages/native.jsx:48:95) {
isMoralisError: true,
code: ‘A0003’,
details: undefined,
page: ‘/native’,
[cause]: undefined
}
warn - Fast Refresh had to perform a full reload. Read more: https://nextjs.org/docs/basic-features/fast-refresh#how-it-works
error - MoralisError [Moralis SDK API Error]: [A0003] apiKey is not set
at EndpointResolver.createHeaders (J:_a\simple-nextjs-demo\node_modules@moralisweb3\api-utils\lib\resolvers\EndpointResolver.js:158:19)
at EndpointResolver. (J:_a\simple-nextjs-demo\node_modules@moralisweb3\api-utils\lib\resolvers\EndpointResolver.js:64:47)
at step (J:_a\simple-nextjs-demo\node_modules@moralisweb3\api-utils\lib\resolvers\EndpointResolver.js:33:23)
at Object.next (J:_a\simple-nextjs-demo\node_modules@moralisweb3\api-utils\lib\resolvers\EndpointResolver.js:14:53)
at J:_a\simple-nextjs-demo\node_modules@moralisweb3\api-utils\lib\resolvers\EndpointResolver.js:8:71
at new Promise ()
at __awaiter (J:_a\simple-nextjs-demo\node_modules@moralisweb3\api-utils\lib\resolvers\EndpointResolver.js:4:12)
at EndpointResolver.get (J:_a\simple-nextjs-demo\node_modules@moralisweb3\api-utils\lib\resolvers\EndpointResolver.js:55:47)
at Object.EndpointResolver.fetch [as getNativeBalance] (J:_a\simple-nextjs-demo\node_modules@moralisweb3\api-utils\lib\resolvers\EndpointResolver.js:115:34)
at getServerSideProps (webpack-internal:///./pages/native.jsx:48:95) {
isMoralisError: true,
code: ‘A0003’,
details: undefined,
page: ‘/native’,
[cause]: undefined