Skip to main content
added 260 characters in body
Source Link
Kevin
  • 1.3k
  • 1
  • 10
  • 14

FoundUpdate: The library's author gave a lot of support for looking for the solution. It turns out I used both dynamic-import-webpack and react-imported-component/babel in the .babelrc. After removed dynamic-import-webpack, it works very well with import()


Please try the method above first. Found the solution. I used the import() in my router, which does not work with webpackChunkname comment. After I changed it to System.import(), the comment can be used by Webpack.

Hopefully, other people who have the same issue can see this.

Found the solution. I used the import() in my router, which does not work with webpackChunkname comment. After I changed it to System.import(), the comment can be used by Webpack.

Hopefully, other people who have the same issue can see this.

Update: The library's author gave a lot of support for looking for the solution. It turns out I used both dynamic-import-webpack and react-imported-component/babel in the .babelrc. After removed dynamic-import-webpack, it works very well with import()


Please try the method above first. Found the solution. I used the import() in my router, which does not work with webpackChunkname comment. After I changed it to System.import(), the comment can be used by Webpack.

Hopefully, other people who have the same issue can see this.

deleted 1 character in body
Source Link
Kevin
  • 1.3k
  • 1
  • 10
  • 14

Found the solution. I used the import() forin my router, which does not work with webpackChunkname comment. After I changed it to System.import(), the comment can be used by Webpack.

Hopefully, other people who have the same issue can see this.

Found the solution. I used the import() for my router, which does not work with webpackChunkname comment. After I changed it to System.import(), the comment can be used by Webpack.

Hopefully, other people who have the same issue can see this.

Found the solution. I used the import() in my router, which does not work with webpackChunkname comment. After I changed it to System.import(), the comment can be used by Webpack.

Hopefully, other people who have the same issue can see this.

Source Link
Kevin
  • 1.3k
  • 1
  • 10
  • 14

Found the solution. I used the import() for my router, which does not work with webpackChunkname comment. After I changed it to System.import(), the comment can be used by Webpack.

Hopefully, other people who have the same issue can see this.