We are using babel/next -default settings on a nextjs deployment and calls to addChain work locally but when we deploy to vercel, we get this error.
Any ideas what would cause this or how we can fix?
error= TypeError: (intermediate value).checkAddChainRequirements is not a function
at l.addChain (_app-2d377754c4e4b8ab.js:1:739580)
at pn.addChain (3817.01ab32daf2b7b856.js:1:4702)
at 3654-87df67fb3ab84fa3.js:1:4651
at s (main-f2fe55b6828512bb.js:1:9714)
at Generator._invoke (main-f2fe55b6828512bb.js:1:9502)
at P.forEach.e. [as next] (main-f2fe55b6828512bb.js:1:10137)
at r (_app-2d377754c4e4b8ab.js:1:4041272)
at s (_app-2d377754c4e4b8ab.js:1:4041475)
at _app-2d377754c4e4b8ab.js:1:4041534
at new Promise ()
On safari with some fiddling with babel it gives a slightly different error and says super.checkAddChainRequirements isn’t a function.
Any idea what the babel settings might need to be or why this isn’t loading properly on vercel but is locally with the same compile settings?
Any help would be appreciated!
[Error] TypeError: super.checkAddChainRequirements is not a function. (In ‘super.checkAddChainRequirements(n)’, ‘super.checkAddChainRequirements’ is undefined)
(anonymous function) — _app-2d377754c4e4b8ab.js:1:739606
addChain — _app-2d377754c4e4b8ab.js:1:739692
addChain — 3817.01ab32daf2b7b856.js:1:4715
s — main-f2fe55b6828512bb.js:1:9719
(anonymous function) — main-f2fe55b6828512bb.js:1:9504
r — _app-2d377754c4e4b8ab.js:1:4041273
s — _app-2d377754c4e4b8ab.js:1:4041477
(anonymous function) — _app-2d377754c4e4b8ab.js:1:4041536
Promise
(anonymous function) — _app-2d377754c4e4b8ab.js:1:4041427
s — main-f2fe55b6828512bb.js:1:9719
(anonymous function) — main-f2fe55b6828512bb.js:1:9504
r — _app-2d377754c4e4b8ab.js:1:4041273
s — _app-2d377754c4e4b8ab.js:1:4041477
(anonymous function) — _app-2d377754c4e4b8ab.js:1:4041536
Promise
(anonymous function) — _app-2d377754c4e4b8ab.js:1:4041427
(anonymous function) — 3654-87df67fb3ab84fa3.js:1:123363
onClick — 3654-87df67fb3ab84fa3.js:1:123380
Oe — framework-40605f9fdf0fe0ab.js:1:16883
Ae — framework-40605f9fdf0fe0ab.js:1:17037
(anonymous function) — framework-40605f9fdf0fe0ab.js:1:36937
Ir — framework-40605f9fdf0fe0ab.js:1:37026
Ur — framework-40605f9fdf0fe0ab.js:1:37443
(anonymous function) — framework-40605f9fdf0fe0ab.js:1:42885
ss — framework-40605f9fdf0fe0ab.js:1:106553
Le — framework-40605f9fdf0fe0ab.js:1:16012
Hr — framework-40605f9fdf0fe0ab.js:1:38737
Kn — framework-40605f9fdf0fe0ab.js:1:23133
Qn — framework-40605f9fdf0fe0ab.js:1:22917
Qn
(anonymous function) (3654-87df67fb3ab84fa3.js:1:5138)
s (main-f2fe55b6828512bb.js:1:9719)
(anonymous function) (main-f2fe55b6828512bb.js:1:9504)
r (_app-2d377754c4e4b8ab.js:1:4041273)
d (_app-2d377754c4e4b8ab.js:1:4041513)