Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

193
Visualizações
Can't compile React component from builder format via Mitosis

I've installed Mitosis on my Node.js project, create the directory build for output files and create the input file component.jsx with the code from the link https://github.com/builderio/mitosis#at-a-glance

If I run the command

mitosis compile -t react --out=build/myCustomName.js component.jsx

everything works fine.

But when I paste the JSX code into the left column of their live compiler by the link https://mitosis.builder.io, compile it to JSON, then copy-paste the output JSON code into the file component.json and run the command

mitosis compile -t react -f builder --out=build/myCustomName.js component.json

I receive the file myCustomName.js with the following code only

import { useContext } from "react";

export default function MyComponent(props) {
  return <></>;
}

Why? And how to resolve the issue?

ps. as I understand input format builder means their JSON, right?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Ok, now I see that the input format builder is also JSON, but it's not the same than JSON output format at the mitosis.builder.io. The issue is resolved.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda