Closed louiss0 closed 1 year ago
The example repo you linked works fine here. I'm guessing you updated the package but didn't reload your IDE. Try reloading it and let me know if it's still not working.
Regarding the vite issue, it's currently the intended behavior, vite-plugin-vue by default doesn't support empty SFCs (a component without template and script is considered empty). I'm not sure if this is something I can tweak, I'll investigate it, but for now it's out of the scope of this plugin.
The example repo you linked works fine here. I'm guessing you updated the package but didn't reload your IDE. Try reloading it and let me know if it's still not working.
Regarding the vite issue, it's currently the intended behavior, vite-plugin-vue by default doesn't support empty SFCs (a component without template and script is considered empty). I'm not sure if this is something I can tweak, I'll investigate it, but for now it's out of the scope of this plugin.
Things are working fine I'll have to bring this issue to the vite team. But in the meantime, you could take the time to do some researrch on how Volar works. The fact that I have to specify a language every time sucks. The script or template error needs to be suppressed by this plugin.
I was told that this is a compiler error that was created due to this issue. https://github.com/vuejs/core/issues/6676. You need to find a way to catch vue compiler errors not vite errors.
The first problem is solved. I think you need to talk to the team about the second problem. This library is good enough for my use cases and I think I may start promoting it soon. I love using vue directives.
The exporting of components do work. But I get this error from my editor.
If I don't export a script or a template tag. Or when I use script setup I get this error from vite.
Link to minimal reproducible example https://github.com/louiss0/vue-nested-sfc-test