[英]codesandbox - Cannot find module PACKAGE or its corresponding type declarations
I built and released a npm package called schemez .我构建并发布了一个名为 schemez 的 npm package 。 On my local system via vscode, it works great with no errors and plenty of Typescript support.
在我的本地系统上,通过 vscode,它运行良好,没有错误,并且有大量的 Typescript 支持。 On codesandbox, its erroring out with
Cannot find module 'schemez' or its corresponding type declarations.ts(2307)
even though the code is compiling.在 codesandbox 上,即使代码正在编译,它也会出错
Cannot find module 'schemez' or its corresponding type declarations.ts(2307)
。
Sample - https://codesandbox.io/s/fluent-json-schema-vs-schemez-vs-typebox-645s2j示例 - https://codesandbox.io/s/fluent-json-schema-vs-schemez-vs-typebox-645s2j
Why is this occurring?为什么会这样?
For me, this issue is popping up.对我来说,这个问题突然出现了。 When I open console it seems to be a CORS issue with the specific package. It might be a temporary problem, because I can not find many issues regarding this in 2022, although there is a unanswered one here
当我打开控制台时,它似乎是特定 package 的 CORS 问题。这可能是一个暂时的问题,因为我在 2022 年找不到很多与此相关的问题,尽管这里有一个未解决的问题
https://github.com/codesandbox/codesandbox-client/issues/6834 https://github.com/codesandbox/codesandbox-client/issues/6834
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.