-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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 lang="coffee">
fail to inject defineProps
and others
#5527
Comments
I don't think we will support that, no. Coffee script is dead, in my personal opinion. Of course there are legacy projects using it, but our new APIs should focus on plain JS/TS, which has become excellent. My take on this. |
You may get it working with coffee if you actually import |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version
3.2.31
Reproduction link
sfc.vuejs.org/
Steps to reproduce
Above example code is working. I can't show its failing due to the lack of
lang="coffee"
at SFC PlaygroundWhat is expected?
Hope to be able to use
defineProps
,defineEmits
anddefineExpose
inside<script setup>
with coffeescript languageWhat is actually happening?
all of them appears as undefined
Originally posted as comment to #4994 (but realized it is closed)....
First I assume my system is properly configured since it all works while using
setup
function inside a normal<script lang="coffee">
. Issue only appear when I try to use the nicer<script setup>
tag.I'm trying to use
<script setup lang="coffee">
anddefineProps
,defineEmits
anddefineExpose
they all fail.If I remove the
lang
tag it works if I declare variable with bothconst
orlet
.Without proper declaration if fails even with plain JS:
Any chance the code to parse these macros are forcing presence of
const
orlet
?Any workaround to use coffee script here?
The text was updated successfully, but these errors were encountered: