webpack-encore icon indicating copy to clipboard operation
webpack-encore copied to clipboard

Uncaught ReferenceError: Cannot access '__WEBPACK_DEFAULT_EXPORT__' before initialization

Open datnguyen-nfq opened this issue 2 years ago • 6 comments

I used to @[email protected] and then i upgrade into v1.81.1 and i got this issue

Screen Shot 2022-03-18 at 16 16 15

Live file:

Screen Shot 2022-03-18 at 16 19 18

I guess it happen when webpack-encore use webpack ^5.x.x. Can i get some advice ?

datnguyen-nfq avatar Mar 18 '22 09:03 datnguyen-nfq

This import {Event} from '.' looks weird to me, but it's maybe unrelated.

Kocal avatar Mar 18 '22 11:03 Kocal

Screen Shot 2022-03-18 at 21 53 45 @Kocal Kocal I have another file like index.js export all Screen Shot 2022-03-18 at 21 54 31

datnguyen-nfq avatar Mar 18 '22 14:03 datnguyen-nfq

What happens if you replace this line by import {Event} from '_event' ?

Kocal avatar Mar 18 '22 15:03 Kocal

Screen Shot 2022-03-19 at 21 20 48 I already tried and nothing change Screen Shot 2022-03-19 at 21 21 12

datnguyen-nfq avatar Mar 19 '22 14:03 datnguyen-nfq

any solution ? coz i am facing the same issue

Deepak022001 avatar Jan 21 '24 18:01 Deepak022001