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
After 4.29.0 was released (i had "webpack": "^4.25.1" in package.json) my build was failing because dynamic imports were not recognized. Got the following error:
Module parse failed: 'import' and 'export' may only appear at the top level.
I removed the caret from package json and with 4.25.1 it works as expected
What is the current behavior?
My build failed
If the current behavior is a bug, please provide the steps to reproduce.
Not completely sure but this piece of code was not working:
if (urls.is('')) {
import(/*webpackChunkName: "dashboard" */'../dashboard');
}
What is the expected behavior?
Dynamic imports work as expected
Bug report
After 4.29.0 was released (i had "webpack": "^4.25.1" in package.json) my build was failing because dynamic imports were not recognized. Got the following error:
Module parse failed: 'import' and 'export' may only appear at the top level.
I removed the caret from package json and with 4.25.1 it works as expected
What is the current behavior?
My build failed
If the current behavior is a bug, please provide the steps to reproduce.
Not completely sure but this piece of code was not working:
if (urls.is('')) {
import(/*webpackChunkName: "dashboard" */'../dashboard');
}
What is the expected behavior?
Dynamic imports work as expected
Other relevant information:
webpack version:
Node.js version:
Operating System:
Additional tools:
The text was updated successfully, but these errors were encountered: