Jox
Jox
Explore posts from servers
NNuxt
Created by Jox on 11/18/2024 in #❓・help
Any way to fix sourcemaps being completely wrong?
For some reason sourcemaps in our Nuxt 3 application has suddenly stopped working correctly. Breakpoints set in VS Code are no longer applied where you think they are, they are applied and triggered to other lines of code than the ones you chose. Does anyone have any clue what could cause this? I'm clueless.
5 replies
NNuxt
Created by Jox on 11/5/2024 in #❓・help
Template ref "refName" used on a non-ref value. It will not work in the production build.
I'm seeing messages like this in the console. Template ref "shippingForm" used on a non-ref value. It will not work in the production build. What does it mean? As far as I can tell I'm following the docs instructions for adding template refs so I'm not sure what will not work in production? Example, <Shipping ref="shippingForm" />
type ShippingFormType = InstanceType<typeof Shipping>

const shippingFormRef = useTemplateRef<ShippingFormType>('shippingForm')
type ShippingFormType = InstanceType<typeof Shipping>

const shippingFormRef = useTemplateRef<ShippingFormType>('shippingForm')
What am I missing? Might add that I'm using this together with defineExpose from the Shipping component
10 replies