Akryum / Akryum/meteor-vite

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

未關閉
#16 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
33
分支
22
PR 合併指標
30 天內沒有已合併 PR

描述

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

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。