Coder Social home page Coder Social logo

zhongtaisong / react-mobx-antd-pc-dmall2.0 Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 5.0 10.37 MB

基于 react + antd + mobx 构建的拥有前台产品展示页、后台管理系统的pc电商平台

License: MIT License

HTML 0.33% JavaScript 90.93% Shell 0.01% Less 8.73%
reactjs antd-design mobx antd-design-upload react-components antd-design-table

react-mobx-antd-pc-dmall2.0's Introduction

Demo Mall

项目介绍

构建项目用的是 create-react-app(pc、h5)、Taro(微信小程序)
状态管理用的是 mobx(pc、h5、微信小程序)
UI框架用的是 antd(pc)、antd-mobile(h5)、taro-ui(微信小程序)
http发送请求用的是 axios(pc、h5)、Taro.request(微信小程序)
后台模拟用的是 express
数据库用的是 mysql

项目预览

路径:https://github.com/ZhongTaisong/create-react-app-mobx/tree/master/preview

文件目录介绍

pc - pc前端代码
h5 - h5前端代码
weapp - 微信小程序前端代码
server - 后台模拟接口代码
sql -数据库
preview(项目预览图片)

注:此项目代码仅供学习参考使用,请勿用于商业,谢谢!

react-mobx-antd-pc-dmall2.0's People

Contributors

zhongtaisong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

react-mobx-antd-pc-dmall2.0's Issues

less 报错

  • 我的项目里报错
➜  react-mobx-antd-mobile-h5-dmall2.0 git:(master) ✗ npm run build

> [email protected] build
> react-app-rewired build

Creating an optimized production build...
Failed to compile.

./src/index.less
TypeError: this[MODULE_TYPE] is not a function
  • 原项目clone 下来 build 报错
➜  react-mobx-antd-pc-dmall2.0 git:(master) ✗ yarn build
yarn run v1.22.15
$ react-app-rewired build -max_old_space_size=4090
Creating an optimized production build...
Failed to compile.

./node_modules/antd/es/config-provider/style/index.less

// https://github.com/ant-design/ant-motion/issues/44
.bezierEasingMixin();
^
Inline JavaScript is not enabled. Is it set in your options?
      in /Users/show/Desktop/react-mobx-antd-pc-dmall2.0/node_modules/antd/es/style/color/bezierEasing.less (line 110, column 0)


error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Line 0: Parsing error

Hi zhongtai,
I follow your guidance, try to start the server but it shows below error.

Is it relevant to the npm version and react version?

React version is v16.11.0 and npm version is 8.0.0.
May i have your config ?

Line 0: Parsing error: require() of ES Module /Desktop/react-mobx-antd-pc-dmall2.0-master/node_modules/eslint/node_modules/eslint-scope/lib/definition.js from /Desktop/react-mobx-antd-pc-dmall2.0-master/node_modules/babel-eslint/lib/require-from-eslint.js not supported. Instead change the require of definition.js in /Desktop/react-mobx-antd-pc-dmall2.0-master/node_modules/babel-eslint/lib/require-from-eslint.js to a dynamic import() which is available in all CommonJS modules

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.