Allow empty script in compileScript #731
Closed
turbobuilt
started this conversation in
General
Replies: 1 comment
-
Ok i figured out I can just make an empty default component. It would be nice tho if it could make an empty default component with just render on it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In the given link, the compiler fails if there's no script/script setup. This shouldn't happen. I have to write "console.log(...)" or something, otherwise it fails with
[@vue/compiler-sfc] SFC contains no <script> tags.
https://github.com/vuejs/core/blob/bc688434afa1fd1800420430cf65238ecaa371f2/packages/compiler-sfc/src/compileScript.ts#L178
Beta Was this translation helpful? Give feedback.
All reactions