無法弄清楚如何解決這些錯誤的是,玩笑抱怨動態進口這樣的:開玩笑農產品進口動態令牌意外進口
const importModules = Promise.all([
import('containers/HomePage/reducer'),
import('containers/HomePage/sagas'),
import('containers/HomePage'),
]);
錯誤消息:
F:\react-boilerplate\app\store.js:49
import('./reducers').then(function (reducerModule) {
^^^^^^
SyntaxError: Unexpected token import
你可以在這裏找到所有的細節:https://github.com/mxstbr/react-boilerplate/pull/1358
那麼你的'。 babelrc'看起來像? –
它看起來像這樣:https://github.com/Dattaya/react-boilerplate/blob/fd0aa64bd074426541cf0ba675431b389794832f/package.json#L51 – Dattaya
您是否嘗試過使用相同的插件進行製作和測試。看起來像巴貝爾不能編譯的東西與你的巴別克env.test'設置 –