-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
script-setup: String with "export default { ... }" causes compilation error if lang is "ts" #4673
Labels
Comments
I would say this should be const stringWithOpenAndClosedScriptTag = "<script><\/script>" |
@edison1105 Oop, you're right, I'll edit the issue to just mention the export bug! |
syropian
changed the title
script-setup: String with "export default { ... }" or "<script>...</script>" causes compilation error
script-setup: String with "export default { ... }" causes compilation error
Sep 24, 2021
syropian
changed the title
script-setup: String with "export default { ... }" causes compilation error
script-setup: String with "export default { ... }" causes compilation error if lang is "ts"
Sep 24, 2021
yyx990803
added a commit
to vitejs/vite
that referenced
this issue
Sep 24, 2021
If you are using Vite, this is fixed in
|
aleclarson
pushed a commit
to aleclarson/vite
that referenced
this issue
Nov 8, 2021
9 tasks
patak-dev
pushed a commit
to vitejs/vite-plugin-vue
that referenced
this issue
Dec 2, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version
3.2.16
Reproduction link
sfc.vuejs.org/
Steps to reproduce
exportOnNewLineString
exportOnOneLineString
variable for an example of when usingexport default
does not breakWhat is expected?
I expect these strings to not cause a compilation error. It would be fairly common to have strings like these on a documentation page.
What is actually happening?
The compiler fails with the error:
Note: It only fails when using
lang="ts"
withsetup
The text was updated successfully, but these errors were encountered: