old import { Injectable } from '@angular/core'; import { BehaviorSubject } from 'rxjs'; @Injectable({ providedIn: 'root' }) export class DataService { private dataSource = new BehaviorSubject(Object); public currentData = this.dataSource.asObservable…
问题描述: webpack 打包报错 Cannot assign to read only property 'exports' of object '#<Object>',这怎么破? 解决方案: 原因是:The code above is ok. You can mix require and export. You can‘t mix import and module.exports 翻译过来就是说,代码没毛病,在webpack打包的时候,可以在js文件中混用require和export…
网上找的案例是: 实体类字段定义:private String sku_no;dao中接口名定义:Goods findBySkuNo(String skuNo);spring-data按照接口方法定义的名字(默认认为是驼峰写法)skuNo去实体类查找对应字段,当找不到时,就报错了:org.springframework.data.mapping.PropertyReferenceException: No property skuNo found for type Goods! Did you…
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…
问题:使用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以上 原因…
打包报错, mvn install后加上参数-Dgpg.skip,例如:mvn install -Dgpg.skip   即可解决. 我们也可以去掉 这个 插件   <plugin>                <groupId>org.apache.maven.plugins</groupId>                <artifactId>maven-gpg-plugin</artifactId>                &l…
vue-cli 打包报错: ERROR in static/js/vendor.ed7d2353f79d28a69f3d.js from UglifyJs Unexpected token: punc (() [./node_modules/vue-particles/src/vue-particles/index.js:6,0][static/js/vendor.ed7d2353f79d28a69f3d.js:34830,12] 原因:上面的代码是es6的语法,由于现在还有浏览器不支持es6的…
Mac Angular打包报错: Error: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance Angular项目运行,打包需安装环境如下: 1:安装node(自己去官网下载指定版本安装,Angular1.0这种过时的项目是不支持高版…
真机运行没问题,打包报错: clang: error: linker command failed with exit code 1 (use -v to see invocation) 原因:在Xcode 7中,我们新建一个iOS程序时,bitcode选项默认是设置为YES的.我们可以在”Build Settings”->”Enable Bitcode”选项中看到这个设置.不过,我们现在需要考虑的是三个平台:iOS,Mac OS,watchOS.对于iOS,bitcode是可选的:对于watc…
原文:CORDOVA :添加cordova-plugin-file-opener2插件cordova打包报错 最近在接触android项目,其中涉及到APP自动更新的问题,当新APP下载成功后需要打开调用cordova.plugins.fileOpener2.open,但是当引用了cordova-plugin-file-opener2插件后,重新打包项目发现报错: 代码: function downloadFile() { $('#bbsm').css({ 'height' : '200px',…