error importing in next js.
muhyulianto opened this issue · 1 comments
muhyulianto commented
next js require window
any help?
ybelenko commented
Helped me, in webpack.config.js
:
module.exports = {
(...)
externals: {
window: 'window',
},
};