我的项目使用了ant-design 和 ant-design-mobile,在测试环境上没问题,但是打包发布之后控制台报错 Menu is not defined Flex is not defined 经过一番查找,终于发现问题的原因: 我在代码中使用Menu 和 Flex 组件的方式是这样的: <Menu.Item>xxxx</Menu.Item> <Flex.Item>xxxx</Flex.Item> 打包的时候使用了babel-react-optim…
原因:就如报错提示所描述的,不能重新定义$router,说明是重复定了$router.通常是因为在项目中安装了vue-router的依赖并且用Vue.use()使用了vue-router,还在index.html页面引入了vue-router.js文件. 解决方法有两种: 1. 去掉index.html中的vue-router.js文件的引入.如果没有使用externals的话可以直接使用这种方法. 2. 删除vue-router的依赖,包括依赖包和package.json中的vue-route…
问题:使用xcode10打包报错,提示 error:Multiple commands produce ‘xxxx/xxx.app’ 1)Target ‘xx’ has create directory command with output ‘xxxxxxx' 2)That command depends on command in Target ‘xxx’:scrpit phase"[CP] Copy Pods Resources"   解决方法:将pod升级到1.4.0以上 原因…
此处提醒:项目是vite还是vue/cli,打包有区别 打包报错问题: 原因: package.json中,build配置vue-tsc的问题,把对应的命令给删掉: . 语法检查问题: 要么<scripts steup lang="ts">,要么vite.config.ts中删除下面…
zabbix安装unixODBC配置完之后报错 libmysqlclient_16 not defined in file libmysqlclient_r.so.16 分析 我没有使用centos6自带的MySQL包,而是从官方下载的MySQL5.6的包,但是安装msyql-connector-odbc的时候我使用了自带的,导致错误, 解决方法 卸载掉刚才装的MySQL-connectoryum remove mysql-connector-odbc 从官方下载安装包 安装完从官网下载的包之后…
刚开始 做一个项目,总是报错"XX is not  a function"   最后发现 原因 ,   原来是 服务的 注入位置 有问题. angular.module("myController",[]) .controller("myCtrl",["$scope","$http","$state",function($scope,$http,$state){ //function里面…
我用VS2012在Nuget中安装Signalr之后报错 “/”应用程序中的服务器错误. The following errors occurred while attempting to load the app.- No assembly found containing an OwinStartupAttribute.- No 'Configuration' method was found in class 'Microsoft.VisualStudio.Web.PageInspecto…
check out下来后报错提示: svn: E155036: Please see the 'svn upgrade' commandsvn: E155036: Working copy '/home/easwy/dev' is too old (format 10, created by Subversion 1.6)   解决办法: 在命令行下跳转到工程目录文件夹,执行"svn upgrade"命令 svn upgrade 输出:Upgraded '.' 来自为知笔记(Wiz)…
webpack 打包报错: One CLI for webpack must be installed. These are recommended choices, delivered as separate packages: 解决办法: 全局.局部安装个遍!具体什么原因还不清楚... 先全局安装webpack和webpack-clinpm install webpack -gnpm install webpack-cli -g再局部安装webpack和webpack-clinpm inst…
使用async函数,在webpack打包时报错 babel-polyfill is required. You must also install it in order to get async/await working. 需要加入babel-polyfill npm i -D babel-polyfill 这里有个小插曲,经测试发现yarn 无法安装css-loader 1.0.0, 而且若先用npm安装完css-loader后用yarn安装其他包也会报错,可用npm安装 在webpack…