Lir*_*anC 7 javascript sentry next.js
我正在将 Next.js 与 AMP 一起使用。这意味着我的代码仅在服务器上运行。没有客户端代码。
我试图整合@sentry/node
然而,当我独自加入这行来index.js的/pages
const Sentry = require('@sentry/node');
构建失败并出现以下错误:
[ wait ] compiling ...
[ error ] ./node_modules/@sentry/node/esm/integrations/console.js
Module not found: Can't resolve 'console' in '/Users/lirancohen/Projects/amp-app/node_modules/@sentry/node/esm/integrations'
Run Code Online (Sandbox Code Playgroud)
我将不胜感激任何帮助理解这个问题。使用 next 9.0.1 和 sentry 5.0.5
| 归档时间: |
|
| 查看次数: |
7164 次 |
| 最近记录: |