I can't import scss file although there is a configuration in next.config.js for supporting css|scss .
System information
Macos : 10.13.6
nodejs: v8.11.3
Errorwindow is not defined ReferenceError: window is not defined at /Users/apple/Documents/projects/xkld-collections/mak90/.next/server/static/development/pages/index.js:1714:2 at /Users/apple/Documents/projects/xkld-collections/mak90/.next/server/static/development/pages/index.js:1703:46 at module.exports../node_modules/style-loader/lib/addStyles.js.module.exports (/Users/apple/Documents/projects/xkld-collections/mak90/.next/server/static/development/pages/index.js:1771:88) at Object../components/styles.scss (/Users/apple/Documents/projects/xkld-collections/mak90/.next/server/static/development/pages/index.js:837:134) at __webpack_require__ (/Users/apple/Documents/projects/xkld-collections/mak90/.next/server/static/development/pages/index.js:23:31) at Module../components/App.js (/Users/apple/Documents/projects/xkld-collections/mak90/.next/server/static/development/pages/index.js:115:70) at __webpack_require__ (/Users/apple/Documents/projects/xkld-collections/mak90/.next/server/static/development/pages/index.js:23:31) at Module../containers/Default.js (/Users/apple/Documents/projects/xkld-collections/mak90/.next/server/static/development/pages/index.js:864:73) at __webpack_require__ (/Users/apple/Documents/projects/xkld-collections/mak90/.next/server/static/development/pages/index.js:23:31) at Module../pages/index.js (/Users/apple/Documents/projects/xkld-collections/mak90/.next/server/static/development/pages/index.js:2206:77) at __webpack_require__ (/Users/apple/Documents/projects/xkld-collections/mak90/.next/server/static/development/pages/index.js:23:31) at Object.3 (/Users/apple/Documents/projects/xkld-collections/mak90/.next/server/static/development/pages/index.js:2261:18) at __webpack_require__ (/Users/apple/Documents/projects/xkld-collections/mak90/.next/server/static/development/pages/index.js:23:31) at /Users/apple/Documents/projects/xkld-collections/mak90/.next/server/static/development/pages/index.js:91:18 at Object.<anonymous> (/Users/apple/Documents/projects/xkld-collections/mak90/.next/server/static/development/pages/index.js:94:10) at Module._compile (module.js:652:30)
I can't import scss file although there is a configuration in next.config.js for supporting css|scss .
System information Macos : 10.13.6 nodejs: v8.11.3
Error
window is not defined ReferenceError: window is not defined at /Users/apple/Documents/projects/xkld-collections/mak90/.next/server/static/development/pages/index.js:1714:2 at /Users/apple/Documents/projects/xkld-collections/mak90/.next/server/static/development/pages/index.js:1703:46 at module.exports../node_modules/style-loader/lib/addStyles.js.module.exports (/Users/apple/Documents/projects/xkld-collections/mak90/.next/server/static/development/pages/index.js:1771:88) at Object../components/styles.scss (/Users/apple/Documents/projects/xkld-collections/mak90/.next/server/static/development/pages/index.js:837:134) at __webpack_require__ (/Users/apple/Documents/projects/xkld-collections/mak90/.next/server/static/development/pages/index.js:23:31) at Module../components/App.js (/Users/apple/Documents/projects/xkld-collections/mak90/.next/server/static/development/pages/index.js:115:70) at __webpack_require__ (/Users/apple/Documents/projects/xkld-collections/mak90/.next/server/static/development/pages/index.js:23:31) at Module../containers/Default.js (/Users/apple/Documents/projects/xkld-collections/mak90/.next/server/static/development/pages/index.js:864:73) at __webpack_require__ (/Users/apple/Documents/projects/xkld-collections/mak90/.next/server/static/development/pages/index.js:23:31) at Module../pages/index.js (/Users/apple/Documents/projects/xkld-collections/mak90/.next/server/static/development/pages/index.js:2206:77) at __webpack_require__ (/Users/apple/Documents/projects/xkld-collections/mak90/.next/server/static/development/pages/index.js:23:31) at Object.3 (/Users/apple/Documents/projects/xkld-collections/mak90/.next/server/static/development/pages/index.js:2261:18) at __webpack_require__ (/Users/apple/Documents/projects/xkld-collections/mak90/.next/server/static/development/pages/index.js:23:31) at /Users/apple/Documents/projects/xkld-collections/mak90/.next/server/static/development/pages/index.js:91:18 at Object.<anonymous> (/Users/apple/Documents/projects/xkld-collections/mak90/.next/server/static/development/pages/index.js:94:10) at Module._compile (module.js:652:30)