简体   繁体   English

codesandbox - 找不到模块 PACKAGE 或其相应的类型声明

[英]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.

相关问题 找不到模块“graphql-hooks”或其相应的类型声明 - Cannot find module 'graphql-hooks' or its corresponding type declarations 找不到模块“./App.svelte”或其对应的类型声明 - Cannot find module './App.svelte' or its corresponding type declarations 如何解决找不到找不到模块'../home/featuredRooms'或其对应的类型声明。? - how to solve cannot find Cannot find module '../home/featuredRooms' or its corresponding type declarations.? React,Storybook - TS2307:找不到模块“按钮”或其相应的类型声明 CAN SB RESOLVE? - React,Storybook - TS2307: Cannot find module 'Button' or its corresponding type declarations CAN SB RESOLVE? 找不到模块“@react-navigation/native”或其相应的类型声明 - Cannot find module '@react-navigation/native' or its corresponding type declarations Docker/Next js:: 找不到模块“@mui/x-date-pickers/AdapterDateFns”或其相应的类型声明 - Docker/Next js :: Cannot find module '@mui/x-date-pickers/AdapterDateFns' or its corresponding type declarations 为什么我收到此错误找不到模块“nestjs/common”或其相应的类型声明 - Why I got this error Cannot find module 'nestjs/common' or its corresponding type declarations VueJS/Typescript - 找不到模块“./components/Navigation”或其相应的类型声明 - VueJS/Typescript - Cannot find module './components/Navigation' or its corresponding type declarations ReScript,TypeScript:找不到模块“@rescript/react/src/ReactDOM.gen”或其相应的类型声明 - ReScript, TypeScript: Cannot find module '@rescript/react/src/ReactDOM.gen' or its corresponding type declarations 在 vercel 上部署我的 next.js 项目,找不到模块“react-icons/Fa”或其相应的类型声明 - deploy my next.js project on vercel, Cannot find module 'react-icons/Fa' or its corresponding type declarations
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM