practical-module-federation icon indicating copy to clipboard operation
practical-module-federation copied to clipboard

Error in the book

Open XiaofengXie16 opened this issue 4 years ago • 1 comments
trafficstars

I am not sure if this the best platform for reporting the errors in the book. On page 38, the path seems to be wrong for the code below

window.nav.get('Header').then(factory => console.log(factory()));

We should specify the param as ./Header instead of Header for the get function. Otherwise , we will get a promise reject error in the console.

XiaofengXie16 avatar Jan 17 '21 01:01 XiaofengXie16

Indeed on the above.

In addition to this, if we specify the param as ./Header we do get the function but I noticed that the part factory => console.log(factory()) does not log anything on the console.

CharidimosTzedakis avatar May 26 '22 15:05 CharidimosTzedakis