I want to implement SSR in ReactJs using React Loadable by Webpack. Below are a few lines from the package.json file:
const { ReactLoadablePlugin } = require('react-loadable/webpack');
plugins:[
new ReactLoadablePlugin({
filename: path.resolve(__dirname, 'dist', 'react-loadable.json')
}),
]
But I am getting below error:
> [webpack-cli] TypeError: compiler.plugin is not a function
at ReactLoadablePlugin.apply
How can I resolve it?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…