4
Ich versuche, einige Code mit flowtype zu überprüfen:Flowtype wirft einen Fehler auf module.hot.accept
export default function configureStore(initialState: initialStateType) {
/* ... */
if (module && module.hot) {
module.hot.accept('../reducers',() => {
const nextRootReducer = require('../reducers');
store.replaceReducer(nextRootReducer);
});
}
/* ... */
}
Und ich bin immer diese Fehlermeldung:
src/store/configureStore.js:14
14: module.hot.accept('../reducers',() => {
^call of method `accept`. Method cannot be called on
14: module.hot.accept('../reducers',() => {
^^^^^^^^^^ property `hot` of unknown type
Wie kann ich repariere das?
Danke!
Vielen Dank! Jetzt funktioniert es – Vakhlov