You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that export default Foo used in conjunction with Dynamic imports() also forces the developer to access all the exported properties through .default:
constHighcharts=awaitimport('https://code.highcharts.com/js/es-modules/masters/highcharts.src.js');Highcharts.default.chart('container',{ ... });// Highcharts.chart is undefined
This actually happens with HighCharts (fiddle), for which named exports work fine if if imported statically.
It seems that
export default Foo
used in conjunction with Dynamic imports() also forces the developer to access all the exported properties through.default
:This actually happens with HighCharts (fiddle), for which named exports work fine if if imported statically.
Would it be worth adding that to the
export default
can lead to problems page?PS: thanks for making the book free!
The text was updated successfully, but these errors were encountered: