webpack-external-import icon indicating copy to clipboard operation
webpack-external-import copied to clipboard

TypeError: Cannot read property 'call' of undefined at webpack_require (bootstrap:790)

Open zhangyuliangzyl opened this issue 5 years ago • 3 comments

Hi, friend. I use webpack-external-import to import another project's react component.I am often prompted for error like this.

image bootstrap:790 Uncaught (in promise) TypeError: Cannot read property 'call' of undefined at webpack_require (bootstrap:790) at fn (bootstrap:150) at Object. (index.js:5) at Object.okex/account-history (account-history.js:132) at webpack_require (bootstrap:790) at bootstrap:1106

It seems the dependencies in the project that i cross imported, it is loaded later than the project loaded. Is there any way to solve the problem of loading order? Thanks.

zhangyuliangzyl avatar Mar 16 '20 15:03 zhangyuliangzyl

I am also getting the same error when two app import each other.

saravanan10393 avatar Mar 21 '20 16:03 saravanan10393

I am having the same issue when doing internal imports.Did someone found a workaround?

Edit: I found a solution which is to interleave all the internal imports.

brussev avatar May 05 '20 09:05 brussev

@brussev What do you mean by keeping everything into the interleave?

aditya81070 avatar Jul 14 '20 06:07 aditya81070