--- tags: brew-js --- # Known issues Here listed major known issues over different versions, listing affected versions and possible workaround. ## Failed to compile in HMR mode Due to certain version of `react-refresh` failed to correctly infer JS file with extension `.js` whether it is `commonjs` or `esm` file, the following error will occured when running `npm start` or `yarn start` ``` Failed to compile. node_modules/brew-js/include/external/jquery.js 2:28 Module parse failed: Unexpected token (2:28) File was processed with these loaders: ./node_modules/@pmmmwh/react-refresh-webpack-plugin/loader/index.js You may need an additional loader to handle the result of these loaders. ``` To fix the issue, upgrade to version `0.4.8` or later.