codesandbox-client icon indicating copy to clipboard operation
codesandbox-client copied to clipboard

odd typescript-related bug

Open Haroenv opened this issue 1 year ago • 1 comments

🐛 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

  • [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

Haroenv avatar Jul 01 '24 09:07 Haroenv

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

Haroenv avatar Jul 01 '24 12:07 Haroenv