Comments (2)
可以试下这个插件:vite-plugin-react-js-support
from wp2vite.
使用 @vitejs/plugin-react 可以解决
import react from '@vitejs/plugin-react'
...
plugins: [react()]
from wp2vite.
Related Issues (20)
- webpack react项目 转化后 不识别< 标签前缀 与... 请问是什么原因? HOT 2
- 转化后 vue的 :class 语法报错 Unexpected token HOT 1
- 不支持webpack.config.ts
- 转换完毕后,组件无法进行挂载,template或render方法未定义 HOT 1
- [wp2vite-error]:Error: The NODE_ENV environment variable is required but was not specified. HOT 2
- 运行后打开链接 502 HOT 1
- 关于antd主题的 HOT 3
- vue3 elementPlus项目转换后报一堆错误,无法运行 HOT 2
- 目前无法支持vue2+tsx+class的项目吗
- 加载不到index.html
- 404 page not found
- 项目启动后报错:TypeError: Unexpected MODIFIER at 11, expected END HOT 1
- Object(...) is not a function HOT 1
- 路由懒加载 和@路径报错 HOT 1
- 基于easywebpack转换出错 HOT 3
- 2.9.4 转换alias错误
- 有交流群吗? HOT 1
- 寻找交流群
- 如果失败,支持回退到webpack吗? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wp2vite.