📜  未定义文档对象 Next js - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:49.110000             🧑  作者: Mango

代码示例1
// You might want to initialize this to a placeholder like
// let Picker = 
let Picker; if (process.browser) { console.log('We can access the window object'); // Now let's do the dynamic import of that component we want to use Picker = dynamic(() => import("emoji-picker-react")) }