Giter Site home page Giter Site logo

yunsii / vite-react Goto Github PK

View Code? Open in Web Editor NEW
163.0 4.0 23.0 14.87 MB

🚀 Use Vite + React like a Pro!

Home Page: https://yunsii.github.io/vite-react

License: MIT License

HTML 2.32% TypeScript 87.11% Less 9.72% Shell 0.85%
vite react typescript react-router-dom antd ant-design-pro eslint prettier windicss scaffolding

vite-react's Introduction

English | 简体中文

Vite React

🚀 Use Vite + React like a Pro!

Try building an Ant Design Pro-like project with Vite, which builds an easy-to-use mid-background scaffolding from scratch.

✨ Features

  • 🛠 TypeScript + ESLint + Prettier + lint-staged, preset configurations
  • ❤️ Less + Windi CSS, enjoyable CSS development experience
  • ⚙️ Preset Vite plugins reasonable, pursue the ultimate development experience
  • 💡 Fully features of Ant Design, support style import on demand
  • 💎 Provide different degrees of custom scaffolding, free choice, easy to use

Always one option for you

Due to the different needs of everybody, and in order to reduce the mental burden of users, the increasingly complex project was split, but the development environment configuration remained, which also made it convenient for users to customize the development environment. The following shows the preset core dependencies of each branch.

Only provides primitive React development support for small, routless projects such as Hello World or for custom more complex scaffolding.

Based on vitjs/vit, take over the route and application entry, support custom MOCK data. It can be convenient to build a complicated application based on routing.

Contains all the features of the previous branch, while supporting the fully features of antd, and Ant Design Pro page layout

Contains all the features of the previous branch, Use concent as a global state management tool.

vite-react's People

Contributors

yunsii avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vite-react's Issues

项目运行错误

不支持较新的依赖更新了,只要把 yarn.lock 文件删除再运行,项目就报错。

怎么使用path-to-regexp插件

使用path-to-regexp插件时,会报错

node_modules/react-router/esm/react-router.js:9:7: error: No matching export in "node_modules/path-to-regexp/dist.es2015/index.js" for import "default"
9 │ import pathToRegexp from 'path-to-regexp';
╵ ~~~~~~~~~~~~

error when starting dev server:
Error: Build failed with 1 error:
node_modules/react-router/esm/react-router.js:9:7: error: No matching export in "node_modules/path-to-regexp/dist.es2015/index.js" for import "default"

LoadingComponent path error

[vite] Internal server error: Failed to resolve import "C:UserszhangDesktop
ite-reactsrccomponentsPageLoading" from "src\.vit\routes.ts". Does the file exist?
  Plugin: vite:import-analysis
  File: C:/Users/zhang/Desktop/vite-react/src/.vit/routes.ts
  4  |  import BulbOutlined from "@ant-design/icons/BulbOutlined";
  5  |  import UserOutlined from "@ant-design/icons/UserOutlined";
  6  |  import LoadingComponent from "C:UserszhangDesktop\vite-reactsrccomponentsPageLoading";
     |                                ^
  7  |  export default function getRoutes() {
  8  |    const routes = [{
      at formatError (C:\Users\zhang\Desktop\vite-react\node_modules\vite\dist\node\chunks\dep-76613303.js:36769:46)
      at TransformContext.error (C:\Users\zhang\Desktop\vite-react\node_modules\vite\dist\node\chunks\dep-76613303.js:36765:19)
      at normalizeUrl (C:\Users\zhang\Desktop\vite-react\node_modules\vite\dist\node\chunks\dep-76613303.js:73686:26)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)
      at async TransformContext.transform (C:\Users\zhang\Desktop\vite-react\node_modules\vite\dist\node\chunks\dep-76613303.js:73826:57)
      at async Object.transform (C:\Users\zhang\Desktop\vite-react\node_modules\vite\dist\node\chunks\dep-76613303.js:36985:30)
      at async doTransform (C:\Users\zhang\Desktop\vite-react\node_modules\vite\dist\node\chunks\dep-76613303.js:52049:29)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.