metaplex-foundation / js

A JavaScript SDK for interacting with Metaplex's programs
357 stars 182 forks source link

TypeError: Cannot read properties of undefined (reading 'prototype') #296

Closed PhongVu07 closed 2 years ago

PhongVu07 commented 2 years ago

I'm using nextjs 12, after installing @metaplex-foundation/js v0.15.0 by app breaks with error TypeError: Cannot read properties of undefined (reading 'prototype')

lorisleiva commented 2 years ago

Hi there 👋

Not sure why this is the case. We have a working example with Next.js 12. 🤔

Did Next.js change something on their latest version and no longer polyfills Node dependencies?

lorisleiva commented 2 years ago

Hi again 👋

I've had a look at the Next.js example again and couldn't reproduce this error I'm afraid.

I'm going to close this since we could not reproduce but if you're still getting the same error, please feel free to open a new issue using the latest version and, ideally, providing a public repository containing the minimum code required to replicate this issue.

Thank you for your understanding.