scope.registerDeclaration(declarationPath) error with vite-plugin-solid 2.8.2
When updating vite-plugin-solid from version 2.8.0 to version 2.8.2 when I export a component as default I get the following warning:
The exported identifier "App" is not declared in Babel's scope tracker
as a JavaScript value binding, and "@babel/plugin-transform-typescript"
never encountered it as a TypeScript type declaration.
It will be treated as a JavaScript value.
This problem is likely caused by another plugin injecting
"App" without registering it in the scope tracker. If you are the author
of that plugin, please use "scope.registerDeclaration(declarationPath)".
I have almost the same problem, but identifier is Input.
Problem dissapears once I roll back to 2.8.0, and appers in 2.8.1.
Apparently it's because of the bump of babel packages in solid-refresh lib.
If you export Input not as default it should not output this warning.
Feels like we should move this to Solid Refresh then? @lxsmnsyc
Hmmm it can go both ways @ryansolid
I really wanted the #95 soon, but I'll still check Refresh for this.
Let us know if this still happens in ^2.9.0
The exported identifier "Input"... fixed. Thank you, @lxsmnsyc!