sandpack icon indicating copy to clipboard operation
sandpack copied to clipboard

Use multiple lines of comments at the beginning of the file. Typescript and JavaScript files are not highlighted

Open liyao1520 opened this issue 1 year ago • 2 comments

Bug report

Packages affected

  • [ ] sandpack-client
  • [x] sandpack-react

Description of the problem

Use multiple lines of comments at the beginning of the file. Typescript and JavaScript files are not highlighted

image

image

What were you doing when the problem occurred?

What steps can we take to reproduce the problem?

Link to sandbox: link (optional)

Your Environment

Software Name/Version
Sandpack-client version
Sandpack-react version ^2.1.2
Browser Chome
Operating System Windows11

liyao1520 avatar Mar 11 '23 13:03 liyao1520

Hey, thanks for reporting this issue. However, I can't reproduce it. Could you create a sandbox where I can reproduce and debug it? For example: https://codesandbox.io/s/brave-saha-huxe4r?file=/src/App.tsx

danilowoz avatar Mar 14 '23 08:03 danilowoz

The sandpack docs can reproduce the problem.

  • I can't reproduce this problem in codesandbox.
  • In my project, this problem occurs when using pnpm.

image

liyao1520 avatar Mar 14 '23 11:03 liyao1520