【发布时间】:2020-05-28 13:48:43
【问题描述】:
我正在为我的 NextJS 应用程序配置 redux 存储,我通常使用 Reactotron 库来检查存储。但是,NextJS 是服务器端渲染,如果我在应用程序文件中导入配置,则会出现错误window is not defined
这是我的配置文件: https://github.com/LauraBeatris/amazon-next/blob/develop/src/config/ReactotronConfig.js
还有我的应用文件: https://github.com/LauraBeatris/amazon-next/blob/develop/src/pages/_app.js
我想知道是否有办法将 Reactotron 与 NextJS 一起使用
【问题讨论】:
标签: javascript reactjs frontend next.js reactotron