codesandbox-client
codesandbox-client copied to clipboard
odd typescript-related bug
🐛 bug report
Not sure what's going on, but it seems like typescript is being interpreted as JavaScript in this sandbox: https://codesandbox.io/p/sandbox/github/algolia/instantsearch/tree/master/examples/js/e-commerce?file=%2Fsrc%2Fsearch.ts
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
Receiving "can't find variable xxxtype", which isn't a variable but a type
How has this issue affected you? What are you trying to accomplish?
Nothing loads
To Reproduce
https://codesandbox.io/p/sandbox/github/algolia/instantsearch/tree/master/examples/js/e-commerce?file=%2Fsrc%2Fsearch.ts should show it right away
Link to sandbox: link
seems to be related to https://github.com/algolia/instantsearch/pull/6260, we could avoid it by adding typescript as a dependency