codesandbox / codesandbox-client

An online IDE for rapid web development
https://codesandbox.io
Other
13.12k stars 2.29k forks source link

odd typescript-related bug #8485

Open Haroenv opened 4 months ago

Haroenv commented 4 months ago

🐛 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

Screenshot 2024-07-01 at 10 18 35

Preflight Checklist

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

Haroenv commented 4 months ago

seems to be related to https://github.com/algolia/instantsearch/pull/6260, we could avoid it by adding typescript as a dependency