至于未来会怎么样 反正路还长 天总会亮

Life is a journey, not a destination, care should be the scenery along the way and the mood to see the scenery.

个人博客
  • ...
     程序 浏览(0)  tangzihan ++阅读原文
    Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre
    登录mysql,输入如下命令 set @@global.sql_mode ='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
  • ...
     前端 浏览(0)  tangzihan ++阅读原文
    解决前端项目部署后404问题
    nginx配置文件如下 location / { ... try_files $uri $uri/ /index.html; ... }
  • ...
     程序 浏览(0)  tangzihan ++阅读原文
    nginx配置了跨域无效解决办法
    nginx配置如下 location / { add_header Access-Control-Allow-Credentials false; add_header Access-Control-Allow-Origin ; add_header Access-Control-Allow-Methods...
  • ...
     程序 浏览(19)  tangzihan ++阅读原文
    Google Adsense无法收到PIN码的解决办法
    由于谷歌发送PIN码是通过国际平信的方式,在国内大部分人是收不到平信的,这就导致了国内的站长无法验证Google Adsense账号。 当你的PIN码次数申请超过四次还没有收到,就可以走人工通道验证 具体步骤如下 1. ![](...
  • ...
     前端 浏览(63)  tangzihan ++阅读原文
    Automatic publicPath is not supported in this browser
    webpack打包资源出现 `Automatic publicPath is not supported in this browser ` 解决方法: 在webpack.config.js文件中添加 ` module.exports = { output: { publicPath: './' } } `
  • ...
     前端 浏览(79)  tangzihan ++阅读原文
    configuration.devtool should match pattern "^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)
    之前 config.devtool = ' cheap-module-eval-source-map' 现在改成 config.devtool = isDev ? false : ' cheap-module-eval-source-map'
  • ...
     前端 浏览(31)  tangzihan ++阅读原文
    Cannot find module 'webpack-cli/bin/config-yargs'
    webpack编译遇到问题 Cannot find module 'webpack-cli/bin/config-yargs' 原因 webpack-cli与webpack-dev-server版本不兼容 解决办法 1.降级webpack-cli 卸载当前的 webpack-cli npm uninstall webpack-cli...
  • ...
     前端 浏览(31)  tangzihan ++阅读原文
    vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.
    原因 v15版的vue-loader配置需要加个VueLoaderPlugin ![](http://www.zihanzy.com/uploads/images/article_con/202012/22/article_con_1608627938_C8kDMinPDR.png) 解决办法 在webpack配置文件添加 const VueLoad...
  • ...
     前端 浏览(16)  tangzihan ++阅读原文
    webpack 打包 Support for the experimental syntax 'classProperties' isn't currently enabled
    解决方案:安装如下插件 npm i -D @babel/plugin-proposal-class-properties 在babelrc中配置插件: ` { "presets": ["@babel/env"], "plugins": ["@babel/plugin-transform-runtime","@babel/plugin-pr...
  • ...
     前端 浏览(36)  tangzihan ++阅读原文
    启动项目报错this.setDynamic is not a function
    此处项目中babel-loader版本为8. ,@babel/core为7.12.9(babel从7.0后更名为@babel) babel7之后的插件一般都是以@babel/开头的。 例子 babel7以前npm安装core npm i babel-core --save-dev babel7以后...