Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignored an update to unaccepted module #293

Open
john1jan opened this issue Mar 26, 2018 · 3 comments
Open

Ignored an update to unaccepted module #293

john1jan opened this issue Mar 26, 2018 · 3 comments

Comments

@john1jan
Copy link

john1jan commented Mar 26, 2018

I am getting this error
screen shot 2018-03-26 at 8 36 56 pm

This is my routes.js

import React from 'react';
import { Route, IndexRoute } from 'react-router';
import NotFoundPage from './components/NotFound/NotFound';
import Wrapper from './views/Wrapper/Wrapper';
import importCss from './utils/importCss';
import LandingPage from './views/LandingPage/LandingPage'
export default (
  <Route path="/" component={Wrapper}>
    <IndexRoute
      name="LandingPage"
      component={LandingPage}
    />

    <Route path="*" component={NotFoundPage} />

  </Route>
);

webpack: 3.6.0
webpack-dev-middleware: 1.10.2
webpack-hot-middleware: 2.21.2

@lampshaj
Copy link

lampshaj commented Jun 4, 2019

What was your solution

I am getting this error
screen shot 2018-03-26 at 8 36 56 pm

This is my routes.js

import React from 'react';
import { Route, IndexRoute } from 'react-router';
import NotFoundPage from './components/NotFound/NotFound';
import Wrapper from './views/Wrapper/Wrapper';
import importCss from './utils/importCss';
import LandingPage from './views/LandingPage/LandingPage'
export default (
  <Route path="/" component={Wrapper}>
    <IndexRoute
      name="LandingPage"
      component={LandingPage}
    />

    <Route path="*" component={NotFoundPage} />

  </Route>
);

webpack: 3.6.0
webpack-dev-middleware: 1.10.2
webpack-hot-middleware: 2.21.2

What was your solution?

@ozyman42
Copy link

ozyman42 commented Sep 5, 2020

I added this to the bottom of my entry file

module.hot.accept((err) => {
    console.log("reloading self");
    window.location.reload();
})

@patosai
Copy link

patosai commented Mar 15, 2021

I was using ES6 modules and after a lot of searching found that module.hot was called import.meta.webpackHot. So I added this to my entry file and I didn't get the error anymore.

if (import.meta.webpackHot) {
  import.meta.webpackHot.accept();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants