Closed luyilin closed 5 years ago
It caused when imported headroom.js@0.9.3. And here is another similar build error, window is not defined when import iconfont.js
I'm rewriting it so don't use for now 😂
But if you want a solution:
if (process.browser) { require('headroom.js') }
It caused when imported headroom.js@0.9.3. And here is another similar build error, window is not defined when import iconfont.js