随着IT技术的更新,“前端”的范围越来越广,由原来的Html网站,到后来的Html5,再到今天的“大前端”。

不得不说,“前端”大军突飞猛进,已经成为不可或缺的客户端技术栈。

下面梳理了Html项目的必备知识体系,会持续更新完善,欢迎大家一起填坑!

CSS

React

TypeScript

  • 基本类型
  • 类型匹配、定义与使用
  • 泛型

webpack

js运行原理

常见问题

  1. 前端问题与小技巧汇总
  2. Cannot use JSX unless the '--jsx' flag is provided 报错解决
  3. react 找不到 'styleName' Property 'styleName' does not exist on type 'DetailedHTMLProps
  4. Module not found: Can't resolve 'react-css-modules' in ...
  5. Cannot find module './demo.styl' or its corresponding type declarations.ts(2307)
  6. TypeError: this.getOptions is not a function
  7. 新建项目运行报错:Error: "xx" CSS module is undefined.
  8. npm run eject 显示webpack配置文件
  9. 运行npm run eject报错:This git repository has untracked flies or uncommitted changes
  10. 在不用npm run eject的情况下,修改React内置webpack 配置
  11. React启动服务器报错:Error: Cannot find module 'webpack-cli/bin/config-yargs'
  12. React启动服务器报错:Cannot find module 'webpack'
  13. webpack报错:options should NOT have additional properties
  14. insertAt insert 报错:options has an unknown property 'insertAt'.
  15. postcss-loader autoprefixer 报错:Error: No PostCSS Config found in:
  16. Error: BABEL xxx.js: Using babel-preset-react-app requires that you specify NODE_ENV or BABEL_ENV environment variables.
  17. Error: Multiple configuration files found. Please remove one: - package.json - /Users/xxx/xxx/xxx/.babelrc
  18. TypeError: CleanWebpackPlugin is not a constructor
  19. Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.

h5_demo.zip