Open valjusha opened 2 years ago
I'm a bit surprised the babel plugin didn't work. The files definitely need to have .jsx/.tsx extension. But I'd expect that to work.
We wrote a custom plugin for Solid to work with Vite. https://github.com/solidjs/vite-plugin-solid/blob/master/src/index.ts. The transform hook is the key part but admittedly I did not write this. I wouldn't expect start-dom-jsx
or a different transformation to work.
@ryansolid Tell me where to start to solve the launch problem mobx-jsx or find another "vite"?
Hello Ryan! Thanks for the interesting tool. But I can not start on vita With a clean config in runtime, the error is
ReferenceError: React is not defined
My problem is parsing jsx markup.
i tried to replace esBuild:
but i am getting error: "Internal server error: Failed to parse source for import analysis because the content contains invalid JS syntax. If you are using JSX, make sure to name the file with the .jsx or .tsx extension."
up. If add
start-dom-jsx
, thenSyntaxError: The requested module '/node_modules/mobx-jsx/dist/h.js' does not provide an export named 'default'
(client)