NodeJS 模块构建失败:Next.js 13上的UnhandledSchemeError(带sentry)

f4t66c6m  于 2023-05-28  发布在  Node.js
关注(0)|答案(1)|浏览(202)

我用sentry(自动安装)创建了Next.js 13项目,我对文件什么也没做,但当它试图编译文件C:\Users\myuser\Desktop\Work\project\sentry.server.config.ts时,它似乎跳过了路径中的字符
下面是一个完整的错误:

- error C:UsersmyuserDesktopWork
projectsentry.server.config.ts
Module build failed: UnhandledSchemeError: Reading from "C:UsersmyuserDesktopWork
projectsentry.server.config.ts" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "c:" URIs.
Import trace for requested module:
C:UsersmyuserDesktopWork
projectsentry.server.config.ts
./app/page.tsx

我试过了:我搜索了github issues和stackoverflow,谷歌搜索和GPT(Bard,Bing Chat),这些都没有工作。

vtwuwzda

vtwuwzda1#

Sentry Next.js SDK的维护者。这应该在SDK的7.53.0版本中得到修复。相关变更日志条目

相关问题