Open ghost opened 6 years ago
@michelarteta: I guess it caused by your Node.js
version, if possible upgrade it to latest LTS version (now is 8.9.4
).. which support Object Spreading syntax.
Incase that is not convenient to upgrade, change this (webpack.config.js
line 95
):
new HtmlWebpackPlugin({
...htmlOptions,
template: 'index.ejs',
filename: 'index.html',
}),
to
new HtmlWebpackPlugin(Object.assign(htmlOptions, {
template: 'index.ejs',
filename: 'index.html',
}),
(similar bug may happen with the plugins: [..]
area cause it use modern array concat as well -> use Array.concat in that case)
Thank you, I’ll try this
On Mon, Feb 12, 2018 at 12:47 PM cloudle notifications@github.com wrote:
@michelarteta https://github.com/michelarteta: I guess it caused by your Node.js version, if possible upgrade it to latest LTS version (now is 8.9.4).. which support Object Spreading https://babeljs.io/docs/plugins/transform-object-rest-spread/ syntax.
Incase that is not convenient to upgrade, change this (webpack.config.js line 95):
new HtmlWebpackPlugin({ ...htmlOptions, template: 'index.ejs', filename: 'index.html', }),
to
new HtmlWebpackPlugin(Object.assign(htmlOptions, { template: 'index.ejs', filename: 'index.html', }),
(similar bug may happen with the plugins: [..] area cause it use modern array concat as well -> use Array.concat in that case)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cloudle/react-universal-ui-boilerplate/issues/1#issuecomment-365003442, or mute the thread https://github.com/notifications/unsubscribe-auth/AEJ3oo2Kx4Ho9vOBratFxdMNkeMT2sHXks5tUHkcgaJpZM4SCekY .
Hello, I just installed the app and after running yarn web I am getting this error