- xml - AJAX/Jquery XML 解析
- 具有多重继承的 XML 模式
- .net - 枚举序列化 Json 与 XML
- XML 简单类型、简单内容、复杂类型、复杂内容
我成功地将现有的 Angular 2 项目转换为 Angular 4,但转换后出现以下错误:-
更多详情,请引用下面的图片
下面提供了我的package.json 和tsconfig.json 文件。
package.json:-
{
"name": "project",
"version": "0.0.1",
"description": "project",
"keywords": [
"project"
],
"scripts": {
"build:dev": "webpack --config config/webpack.dev.js --progress --profile",
"build:docker": "npm run build:prod && docker build -t angular2-webpack-start:latest .",
"build:prod": "webpack --config config/webpack.prod.js --progress --profile --bail",
"build": "npm run build:dev",
"ci": "npm run lint && npm test && npm run e2e",
"clean:dist": "npm run rimraf -- dist",
"clean:install": "npm set progress=false && npm install",
"clean:start": "npm start",
"clean": "npm cache clean && npm run rimraf -- node_modules doc coverage dist",
"docker": "docker",
"docs": "npm run typedoc -- --options typedoc.json --exclude '**/*.spec.ts' ./src/",
"e2e:live": "npm run e2e -- --elementExplorer",
"e2e": "npm run protractor",
"github-deploy:dev": "webpack --config config/webpack.github-deploy.js --progress --profile --env.githubDev",
"github-deploy:prod": "webpack --config config/webpack.github-deploy.js --progress --profile --env.githubProd",
"github-deploy": "npm run github-deploy:dev",
"lint": "npm run tslint \"src/**/*.ts\"",
"postversion": "git push && git push --tags",
"prebuild:dev": "npm run clean:dist",
"prebuild:prod": "npm run clean:dist",
"preclean:install": "npm run clean",
"preclean:start": "npm run clean",
"pree2e": "npm run webdriver:update -- --standalone",
"preversion": "npm test",
"protractor": "protractor",
"rimraf": "rimraf",
"server:dev:hmr": "npm run server:dev -- --inline --hot",
"server:dev": "webpack-dev-server --config config/webpack.dev.js --progress --profile --watch --content-base src/",
"server:prod": "http-server dist --cors",
"server:prod:ci": "http-server dist -p 3000 --cors",
"server": "npm run server:dev",
"start:hmr": "npm run server:dev:hmr",
"start": "npm run server:dev",
"test": "karma start",
"tslint": "tslint",
"typedoc": "typedoc",
"version": "npm run build",
"watch:dev:hmr": "npm run watch:dev -- --hot",
"watch:dev": "npm run build:dev -- --watch",
"watch:prod": "npm run build:prod -- --watch",
"watch:test": "npm run test -- --auto-watch --no-single-run",
"watch": "npm run watch:dev",
"webdriver-manager": "webdriver-manager",
"webdriver:start": "npm run webdriver-manager start",
"webdriver:update": "npm run webdriver-manager update",
"webpack-dev-server": "webpack-dev-server",
"webpack": "webpack"
},
"dependencies": {
"@angular/common": "^4.0.0",
"@angular/compiler": "^4.0.0",
"@angular/core": "^4.0.0",
"@angular/forms": "^4.0.0",
"@angular/http": "^4.0.0",
"@angular/platform-browser": "^4.0.0",
"@angular/platform-browser-dynamic": "^4.0.0",
"@angular/platform-server": "2.2.1",
"@angular/router": "^4.0.0",
"@angularclass/conventions-loader": "^1.0.2",
"@angularclass/hmr": "~1.2.2",
"@angularclass/hmr-loader": "~3.0.2",
"@types/lodash": "^4.14.44",
"assets-webpack-plugin": "^3.4.0",
"core-js": "^2.4.1",
"http-server": "^0.9.0",
"ie-shim": "^0.1.0",
"lodash": "^4.17.2",
"moment": "^2.17.1",
"ng2-ace-editor": "^0.1.5",
"ng2-cookies": "^1.0.2",
"rxjs": "^5.2.0",
"systemjs": "^0.19.47",
"zone.js": "^0.8.5"
},
"devDependencies": {
"@types/hammerjs": "^2.0.33",
"@types/jasmine": "^2.2.34",
"@types/node": "^6.0.60",
"concurrently": "^3.1.0",
"lite-server": "^2.3.0",
"@types/selenium-webdriver": "2.53.33",
"@types/source-map": "^0.1.27",
"@types/uglify-js": "^2.0.27",
"@types/webpack": "^1.12.34",
"angular-router-loader": "^0.4.0",
"angular2-template-loader": "^0.6.0",
"awesome-typescript-loader": "^2.2.1",
"codelyzer": "~1.0.0-beta.4",
"copy-webpack-plugin": "^4.0.0",
"css-loader": "^0.26.0",
"exports-loader": "^0.6.3",
"expose-loader": "^0.7.1",
"file-loader": "^0.9.0",
"gh-pages": "^0.12.0",
"html-webpack-plugin": "^2.21.0",
"imports-loader": "^0.6.5",
"istanbul-instrumenter-loader": "0.2.0",
"json-loader": "^0.5.4",
"karma": "^1.2.0",
"karma-chrome-launcher": "^2.0.0",
"karma-coverage": "^1.1.1",
"karma-jasmine": "^1.0.2",
"karma-mocha-reporter": "^2.0.0",
"karma-remap-coverage": "^0.1.1",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "1.8.0",
"node-sass": "^3.13.0",
"parse5": "^2.2.2",
"protractor": "^4.0.10",
"raw-loader": "^0.5.1",
"rimraf": "~2.5.4",
"sass-loader": "^4.0.2",
"script-ext-html-webpack-plugin": "^1.3.2",
"source-map-loader": "^0.1.5",
"string-replace-loader": "1.0.5",
"style-loader": "^0.13.1",
"to-string-loader": "^1.1.4",
"ts-helpers": "1.1.2",
"ts-node": "^1.7.0",
"tslint": "~3.15.1",
"tslint-loader": "^3.3.0",
"typedoc": "^0.5.0",
"typescript": "^2.2.2",
"url-loader": "^0.5.7",
"v8-lazy-parse-webpack-plugin": "^0.3.0",
"webpack": "2.1.0-beta.27",
"webpack-dev-middleware": "^1.6.1",
"webpack-dev-server": "2.1.0-beta.11",
"webpack-md5-hash": "^0.0.5",
"webpack-merge": "~1.0.1"
},
"engines": {
"node": ">= 4.2.1",
"npm": ">= 3"
}
}
tsconfig.json:-
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"sourceMap": true,
"noEmitHelpers": true,
"strictNullChecks": false,
"baseUrl": "./src",
"paths": {
},
"lib": [ "es2015", "dom" ],
"types": [
"hammerjs",
"jasmine",
"node",
"selenium-webdriver",
"source-map",
"uglify-js",
"webpack"
]
},
"exclude": [
"node_modules",
"dist"
],
"awesomeTypescriptLoaderOptions": {
"forkChecker": true,
"useWebpackText": true
},
"buildOnSave": false,
"atom": { "rewriteTsconfig": false }
}
最佳答案
涉及awesome-typescript-loader和typescript兼容性问题,可以check
如果你可以更改 typescript 和 awesome-typescript-loader 版本。
关于javascript - 模块构建失败 : TypeError: Cannot read property 'exclude' of undefined(awesome-typescript-loader),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46952110/
我有这样的情况: ids = [None, None, None] foo = Foo.objects.filter(common=True).exclude(id__in=ids) 这似乎总是排除所
我创建了一个简单的测试目录: ├── backup.tgz ├── Dummy-dir │ ├── dummy-file-a.txt │ ├── dummy-file-b.txt │ ├─
有了这个 persistence.xml : org.eclipse.persistence.jpa.PersistenceProvider osgi:s
我正在使用 powershell 更新索引策略,但它默认在排除路径中添加 "path": "/\"_etag\"/?" 属性我希望索引策略是 { "indexingMode": "consis
我正在使用 Django 查询从表中过滤掉一些事务,其中一个事务可能在表中有多个条目。 例如示例表 +---------------+---------+ | TransactionId | Stat
我使用 eclipselink 作为 JPA 提供程序,并且需要将实体保存在 jar 文件中。所有 jar 实体都用 @Entity 进行注释。我尝试了 false 和 true 但它没有自动检测实体
这是 Ignore files in git log -p 的后续行动也与Making 'git log' ignore changes for certain paths有关. 我正在使用 Git
我在 Android Studio 中导入了一个库项目,但我无法排除一个组,因为当 compile 指令位于包含的项目中时,gradle 找不到那个 exclude 方法方法? 它可以找到以下方法的排
我正在使用 gitbash 和 git 版本 2.20.1.windows.1。 commit , diff , branch一切正常,但 git status (当然是最基本的命令?)失败。错误信息
假设最开始的命令是这样的 rsync -e 'ssh -p 30000' -avl --delete --stats --progress demo@123.45.67.890:/home/demo
我有一个我想忽略的日期列表: private val excludeDates = List( new DateTime("2015-07-17"),
我有一个这样的表: DESC mytable id | parent 1 | 2 2 | null 3 | null 4 | null 5 | 3 ... | ... 3种条目:
首先,这是我的代码: Bill: 它应该像这样工作: 当我点击“搜索”时,URL 应更改为 "shpapp01/Web/Public.html#/PublicWeb/Tracking/Searc
我继承了一堆C#代码。对于几个方法定义,我找到了 ///作为它前面唯一的 XMLDoc。我试图用谷歌搜索它的含义,但没有成功。有人可以解释一下这可能意味着什么吗? 最佳答案 在NDoc至少,这意味着应
我在将单个目录从远程机器复制到本地时遇到问题。 这是我使用的命令: rsync -chavzP --stats --exclude='/var/www/html/px3' root@IPHERE:/v
我有一个从 1 到 100 的数组: array=$(seq 100) 我的任务是排除 60 到 80 的范围。 最佳答案 您可以将参数扩展与偏移/长度规范一起使用。 #! /bin/bash arr
背景 我一直在使用 Exclude和 Extract实用程序类型,但遇到过我只想匹配确切类型而不是子类型的情况。 到目前为止 我已经成功创建了一个 StrictExtract只提取完全匹配的类型的实用
我在 Windows 上,使用 Subersive 运行 Eclipse Indigo 以连接到 远程 svn 仓库。 我有一个项目 check out 到本地文件夹。项目中有一些目录我想从 chec
我正在 Django 中创建一个稀疏的首选项表。我的模型很简单: class Preference(models.Model): user = models.ForeignKey(settin
我有一个 tar/gzip 文件,我正在使用 ansible unarchive 模块提取到主机列表。 以下是configs.tgz的部分内容列表: -rw-rw-r-- ian/ian
我是一名优秀的程序员,十分优秀!