Declaring new PublicKey(...)
from @solana/web3.js breaks the entire app
#27219
Labels
new PublicKey(...)
from @solana/web3.js breaks the entire app
#27219
Environment
Darwin
v18.17.1
3.11.2
3.11.1
2.9.6
pnpm@8.8.0
-
devtools
-
-
Reproduction
See this minimal reproduction on StackBlitz
OR
pnpm install
pnpm dev
localhost:3000
in the browser500
error screen[nitro] [uncaughtException] Class extends value #<Object> is not a constructor or null
[nuxt] [request error] [unhandled] [500] Cannot access 'renderer$1' before initialization
server/api/transactions/create.post.ts
atline 24
Describe the bug
I believe declaring
new PublicKey(...)
should not break the entire app. But it did otherwise.Additional context
I'm trying to integrate Solana to my app, but failed on implementing the server side code. As mentioned on the reproduction steps, the error is caused by
new PublicKey(...)
declaration.I have tried to reproduce using another framework like Next or Elysia, everything works fine. So I think it might be a bug. I am not sure if this were on Nuxt or Nitro, but either way, this should not be happen.
Please let me know if I am supposed to post this on nitro's repo.
Logs
The text was updated successfully, but these errors were encountered: