BuilderIO / mitosis

Write components once, run everywhere. Compiles to React, Vue, Qwik, Solid, Angular, Svelte, and more.
https://mitosis.builder.io
MIT License
12.4k stars 549 forks source link

"Could not replace node." added in vue-component #1309

Open Farnsi opened 10 months ago

Farnsi commented 10 months ago

I am interested in helping provide a fix!

Yes

Which generators are impacted?

Reproduction case

KYDwDg9gTgLgBAE2AMwIYFcA29noHYDGMAlhHnALICeAQujDGQBRhQRgDOAlHAN4BQcOFGAx0Uck0FC4AHgTEAbnAKZUHDgDlUAW2ABeXnFbsOAOlbEdqKFTgB

Expected Behaviour

Generated vue with:

<template>...

Actual Behaviour

It adds this in the header of the file:

Could not replace node.
<template>...

Additional Information

I can't reproduce it on mitosis.builder.io, only local, when transformed to vue, all other transformer work.

mitosis.builder.io wrote some console.log errors, but creates the file without the text.

samijaber commented 10 months ago

What command are you running, and with what configuration locally that reproduces this issue?