mitosis icon indicating copy to clipboard operation
mitosis copied to clipboard

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

Open Farnsi opened this issue 1 year ago • 1 comments

I am interested in helping provide a fix!

Yes

Which generators are impacted?

  • [ ] All
  • [ ] Angular
  • [ ] HTML
  • [ ] Preact
  • [ ] Qwik
  • [ ] React
  • [ ] React-Native
  • [ ] Solid
  • [ ] Stencil
  • [ ] Svelte
  • [X] Vue
  • [ ] Web components

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.

Farnsi avatar Nov 29 '23 15:11 Farnsi

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

samijaber avatar Dec 06 '23 19:12 samijaber