Akryum / Akryum/meteor-vite

@vitejs/plugin-react can't detect preamble. Something is wrong.

Aberta
#16 2 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
JavaScript
Estrelas
33
Forks
22
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

I have created a project, https://github.com/Back2Dev/vite-react-meteor

The purpose of which is to use vite with Meteor and take advantage of the faster load times.

I hit a problem with this error message:

```
@vitejs/plugin-react can't detect preamble. Something is wrong. See https://github.com/vitejs/vite-plugin-react/pull/11#discussion_r430879201
at Hello.jsx:6:1
```

I found something (related to the same error coming from Cypress) that suggested this in the vite.config.js

```
export default defineConfig({
plugins: [
react({
// Disabling refresh stops the error, but that's kind of pointless
// include: "**/*.disabled",
}),
],
```
Which means that the page now loads, but does not refresh

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.