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

159
Visualizações
Parcel.js Error When Executing On Google Scripts

I'm developing a React App and pushing the files using Clasp to my google scripts webapp. Parcel.js is being used for compiling. Here's a basic React App that works:

index.js

import { createRoot } from 'react-dom/client';
import App from './App';

const container = document.getElementById('app');
const root = createRoot(container); // createRoot(container!) if you use TypeScript
root.render(<App />);

App.js

//app.js
const App = () => {
    return <div>Hello App!</div>
}

export default App

But as soon as I add one @mui/material/ import into App.js I'm getting an error.

import Button from "@mui/material/Button"

const App = () => {
    return <div>Hello App!</div>
}

export default App

Notice that I'm not even using the Button. Locally there's no error but when running on google scripts webapp, I get a console error:

Uncaught SyntaxError: missing ) after argument list

Obviously, Parcel is not compiling something correctly but I can't figure it out. Thanks in advance for the help.

about 4 years ago · Juan Pablo Isaza
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