0

I just installed latest @metaplex-foundation/js package to my nextjs app and the app got broken.

The error is TypeError: Cannot read properties of undefined (reading 'prototype') . It seems to be sth wrong with the @bundlr-network/client dependency.

Am I doing anything worng?

This is full error message:

Uncaught TypeError: Cannot read properties of undefined (reading 'prototype')
    at Object.inherits (inherits_browser.js?01ef:5:1)
    at eval (webpack-internal:///./node_modules/avsc/lib/services.js:1931:6)
    at ./node_modules/avsc/lib/services.js (marketplace.js?ts=1663615324751:6771:1)
    at options.factory (webpack.js?ts=1663615324751:690:31)
    at __webpack_require__ (webpack.js?ts=1663615324751:37:33)
    at fn (webpack.js?ts=1663615324751:359:21)
    at eval (webpack-internal:///./node_modules/avsc/etc/browser/avsc-services.js:12:16)
    at ./node_modules/avsc/etc/browser/avsc-services.js (marketplace.js?ts=1663615324751:6705:1)
    at options.factory (webpack.js?ts=1663615324751:690:31)
    at __webpack_require__ (webpack.js?ts=1663615324751:37:33)
    at fn (webpack.js?ts=1663615324751:359:21)
    at eval (webpack-internal:///./node_modules/avsc/etc/browser/avsc.js:12:20)
    at ./node_modules/avsc/etc/browser/avsc.js (marketplace.js?ts=1663615324751:6727:1)
    at options.factory (webpack.js?ts=1663615324751:690:31)
    at __webpack_require__ (webpack.js?ts=1663615324751:37:33)
    at fn (webpack.js?ts=1663615324751:359:21)
    at eval (webpack-internal:///./node_modules/arbundles/src/parser.js:23:27)
    at ./node_modules/arbundles/src/parser.js (marketplace.js?ts=1663615324751:5629:1)
    at options.factory (webpack.js?ts=1663615324751:690:31)
    at __webpack_require__ (webpack.js?ts=1663615324751:37:33)
    at fn (webpack.js?ts=1663615324751:359:21)
    at eval (webpack-internal:///./node_modules/arbundles/src/DataItem.js:27:18)
    at ./node_modules/arbundles/src/DataItem.js (marketplace.js?ts=1663615324751:5552:1)
    at options.factory (webpack.js?ts=1663615324751:690:31)
    at __webpack_require__ (webpack.js?ts=1663615324751:37:33)
    at fn (webpack.js?ts=1663615324751:359:21)
    at eval (webpack-internal:///./node_modules/arbundles/src/Bundle.js:8:36)
    at ./node_modules/arbundles/src/Bundle.js (marketplace.js?ts=1663615324751:5541:1)
    at options.factory (webpack.js?ts=1663615324751:690:31)
    at __webpack_require__ (webpack.js?ts=1663615324751:37:33)
    at fn (webpack.js?ts=1663615324751:359:21)
    at eval (webpack-internal:///./node_modules/arbundles/src/ar-data-bundle.js:11:34)
    at ./node_modules/arbundles/src/ar-data-bundle.js (marketplace.js?ts=1663615324751:5574:1)
    at options.factory (webpack.js?ts=1663615324751:690:31)
    at __webpack_require__ (webpack.js?ts=1663615324751:37:33)
    at fn (webpack.js?ts=1663615324751:359:21)
    at eval (webpack-internal:///./node_modules/arbundles/src/index.js:26:26)
    at ./node_modules/arbundles/src/index.js (marketplace.js?ts=1663615324751:5618:1)
    at options.factory (webpack.js?ts=1663615324751:690:31)
    at __webpack_require__ (webpack.js?ts=1663615324751:37:33)
    at fn (webpack.js?ts=1663615324751:359:21)
    at eval (webpack-internal:///./node_modules/@bundlr-network/client/build/common/withdrawal.js:8:21)
    at ./node_modules/@bundlr-network/client/build/common/withdrawal.js (marketplace.js?ts=1663615324751:106:1)
    at options.factory (webpack.js?ts=1663615324751:690:31)
    at __webpack_require__ (webpack.js?ts=1663615324751:37:33)
    at fn (webpack.js?ts=1663615324751:359:21)
    at eval (webpack-internal:///./node_modules/@bundlr-network/client/build/common/bundlr.js:6:22)
    at ./node_modules/@bundlr-network/client/build/common/bundlr.js (marketplace.js?ts=1663615324751:29:1)
    at options.factory (webpack.js?ts=1663615324751:690:31)
    at __webpack_require__ (webpack.js?ts=1663615324751:37:33)

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.