codesandbox-client
codesandbox-client copied to clipboard
Cannot find module '' or its corresponding type declarations
🐛 bug report
Preflight Checklist
- [x] I have read the Contributing Guidelines for this project.
- [x] I agree to follow the Code of Conduct that this project adheres to.
- [x] I have searched the issue tracker for an issue that matches the one I want to file, without success.
Description of the problem
I've published a package called windstitch
, so I'm creating this sandbox to demonstrate it. Unfortunately, CodeSandbox is failing to find its types. The package is working but has any
types.
I'm using it in another project and the types work fine. Let me know if I have to set up anything extra so it works fine.
How has this issue affected you? What are you trying to accomplish?
To Reproduce
- Go to this link
- Hover over the import
Link to sandbox: link
Your Environment
Software | Name/Version |
---|---|
Сodesandbox | b8d98f80d |
Browser | Chrome Version 100.0.4896.88 (Official Build) (arm64) |
Operating System | Mac OS 12.2.1 |
Add @types/react
to the sandbox solves the problem. In Embed mode the problem persists. Any reason why?
Hey @vinpac - How long after you had made the changes did you check the embed? It may have been using a cached version
Hey @JamesACS . Yes I did! On the Share Panel that previews the Embed CodeSandbox the types don't work already.
I have the same issue with my package @fairfox/adorn It doesn't find the types and it doesn't see the latest version.
https://codesandbox.io/s/adorn-react-0vbwqo?file=/src/App.tsx
Thanks for your patience; this is due to an issue with the Yarn search index backed by Algolia that comes up from time to time, basically the index becomes desynced with new entries so instead of the standard 10-20 minutes for your package to appear, it can take a day or two.
You can add your package manually to Package.json though in these cases!
Hello @JamesACS 👋🏼
We are having the same issue Cannot find module '@payfit/midnight' or its corresponding type declarations.
with our package (see sandbox).
To give you more context, this package was private until recently (22/08/2022, 2 days ago) and is now public. But it's seems that the sandbox cannot find the types yet.
After a little debugging I found out that some codesandbox internal API is still returning a 403
.
While another codesandbox internal API is returning a 520
Do you have any idea of why this is occurring ? Is there any next steps that we should take ? I don't want to open a new issue and bother codesandbox maintainers for nothing ^^