Describe the bug
If I create a .tsx file with this content
function A() {
return <>1</>
}
namespace A {
export const a = 1;
}
console.log(A);
It throws this error when I load the page (Running vite dev)
Transform failed with 1 error:
ERROR: The symbol "A" has already been declared
I tried downgrading vite-plugin-solid and it worked
npm i vite-plugin-solid@2.8.0
(On the playground it always works)
Your Example Website or App
(localhost)
Steps to Reproduce the Bug or Issue
- Put a merged namespace declaration WITH A COMPONENT somewhere
- Run
vite dev
- Go to the web page
Expected behavior
I expected this allowed TS syntax to not stop working
Screenshots or Videos
No response
Platform
- OS: Windows
- Browser: Edge
- Version: 120.0.2210.77
Additional context
No response
Describe the bug
If I create a
.tsxfile with this contentIt throws this error when I load the page (Running
vite dev)I tried downgrading
vite-plugin-solidand it worked(On the playground it always works)
Your Example Website or App
(localhost)
Steps to Reproduce the Bug or Issue
vite devExpected behavior
I expected this allowed TS syntax to not stop working
Screenshots or Videos
No response
Platform
Additional context
No response