Created
January 18, 2017 09:25
-
-
Save marinho/c14421cff5e4035b47d845b8063e73a4 to your computer and use it in GitHub Desktop.
Issue when installing Angular 2 library
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "compilerOptions": { | |
| "target": "es5", | |
| "module": "commonjs", | |
| "moduleResolution": "node", | |
| "emitDecoratorMetadata": true, | |
| "experimentalDecorators": true, | |
| "allowSyntheticDefaultImports": true, | |
| "sourceMap": true, | |
| "noEmitHelpers": true, | |
| "lib": ["es5", "dom"], | |
| "strictNullChecks": false, | |
| "baseUrl": ".", | |
| "paths": { | |
| "*": [ | |
| "./src/*", | |
| "./generated/*" | |
| ] | |
| }, | |
| "types": [ | |
| "es6-collections", | |
| "es6-shim", | |
| "hammerjs", | |
| "jasmine", | |
| "node", | |
| "protractor", | |
| "selenium-webdriver", | |
| "source-map", | |
| "uglify-js", | |
| "webpack" | |
| ] | |
| }, | |
| "exclude": [ | |
| "node_modules" | |
| ], | |
| "awesomeTypescriptLoaderOptions": { | |
| "forkChecker": true, | |
| "useWebpackText": true | |
| }, | |
| "compileOnSave": false, | |
| "buildOnSave": false, | |
| "atom": { | |
| "rewriteTsconfig": false | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ npm install ../mylib/ | |
| > com.mylib@0.2.0 postinstall /path-of-my-app/node_modules/com.mylib | |
| > npm run build | |
| > com.mylib@0.2.0 build /path-of-my-app/node_modules/com.mylib | |
| > npm run clean && npm run build:jit | |
| > com.mylib@0.2.0 clean /path-of-my-app/node_modules/com.mylib | |
| > rimraf dist/ | |
| > com.mylib@0.2.0 build:jit /path-of-my-app/node_modules/com.mylib | |
| > tsc -p tsconfig.json | |
| src/lib/abort-changes/deactivate-create-component.guard.ts(8,14): error TS2420: Class 'DeactivateCreateGuard' incorrectly implements interface 'CanDeactivate<any>'. | |
| Types of property 'canDeactivate' are incompatible. | |
| Type '(component: any, route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => boolean | Promise<...' is not assignable to type '(component: any, route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => boolean | Observab...'. | |
| Type 'boolean | Promise<boolean> | Observable<boolean>' is not assignable to type 'boolean | Observable<boolean> | Promise<boolean>'. | |
| Type 'Observable<boolean>' is not assignable to type 'boolean | Observable<boolean> | Promise<boolean>'. | |
| Type 'Observable<boolean>' is not assignable to type 'Promise<boolean>'. | |
| Property '[Symbol.toStringTag]' is missing in type 'Observable<boolean>'. | |
| src/lib/auth/guards/admin-permission.guard.ts(8,14): error TS2420: Class 'AdminPermissionGuard' incorrectly implements interface 'CanActivate'. | |
| Types of property 'canActivate' are incompatible. | |
| Type '(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => boolean | Promise<boolean> | Obser...' is not assignable to type '(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => boolean | Observable<boolean> | Pr...'. | |
| Type 'boolean | Promise<boolean> | Observable<boolean>' is not assignable to type 'boolean | Observable<boolean> | Promise<boolean>'. | |
| Type 'Observable<boolean>' is not assignable to type 'boolean | Observable<boolean> | Promise<boolean>'. | |
| Type 'Observable<boolean>' is not assignable to type 'Promise<boolean>'. | |
| src/lib/auth/guards/create-permission.guard.ts(8,14): error TS2420: Class 'CreatePermissionGuard' incorrectly implements interface 'CanActivate'. | |
| Types of property 'canActivate' are incompatible. | |
| Type '(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => boolean | Promise<boolean> | Obser...' is not assignable to type '(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => boolean | Observable<boolean> | Pr...'. | |
| Type 'boolean | Promise<boolean> | Observable<boolean>' is not assignable to type 'boolean | Observable<boolean> | Promise<boolean>'. | |
| Type 'Observable<boolean>' is not assignable to type 'boolean | Observable<boolean> | Promise<boolean>'. | |
| Type 'Observable<boolean>' is not assignable to type 'Promise<boolean>'. | |
| src/lib/auth/guards/global-permission.guard.ts(8,14): error TS2420: Class 'GlobalPermissionGuard' incorrectly implements interface 'CanActivate'. | |
| Types of property 'canActivate' are incompatible. | |
| Type '(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => boolean | Promise<boolean> | Obser...' is not assignable to type '(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => boolean | Observable<boolean> | Pr...'. | |
| Type 'boolean | Promise<boolean> | Observable<boolean>' is not assignable to type 'boolean | Observable<boolean> | Promise<boolean>'. | |
| Type 'Observable<boolean>' is not assignable to type 'boolean | Observable<boolean> | Promise<boolean>'. | |
| Type 'Observable<boolean>' is not assignable to type 'Promise<boolean>'. | |
| src/lib/auth/guards/global-permission.guard.ts(8,14): error TS2420: Class 'GlobalPermissionGuard' incorrectly implements interface 'CanActivateChild'. | |
| Types of property 'canActivateChild' are incompatible. | |
| Type '(childRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot) => boolean | Promise<boolean> | ...' is not assignable to type '(childRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot) => boolean | Observable<boolean>...'. | |
| Type 'boolean | Promise<boolean> | Observable<boolean>' is not assignable to type 'boolean | Observable<boolean> | Promise<boolean>'. | |
| Type 'Observable<boolean>' is not assignable to type 'boolean | Observable<boolean> | Promise<boolean>'. | |
| Type 'Observable<boolean>' is not assignable to type 'Promise<boolean>'. | |
| src/lib/compose/compose-store.ts(50,14): error TS2339: Property 'toArray' does not exist on type 'Observable<any>'. | |
| src/lib/compose/compose-store.ts(92,14): error TS2339: Property 'toArray' does not exist on type 'Observable<any>'. | |
| src/lib/controls/tabs/fragment-anchor.directive.ts(33,14): error TS2339: Property 'takeUntil' does not exist on type 'Observable<string>'. | |
| src/lib/feature-toggle/feature.guard.ts(19,14): error TS2420: Class 'FeatureGuard' incorrectly implements interface 'CanActivate'. | |
| Types of property 'canActivate' are incompatible. | |
| Type '(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => boolean | Promise<boolean> | Obser...' is not assignable to type '(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => boolean | Observable<boolean> | Pr...'. | |
| Type 'boolean | Promise<boolean> | Observable<boolean>' is not assignable to type 'boolean | Observable<boolean> | Promise<boolean>'. | |
| Type 'Observable<boolean>' is not assignable to type 'boolean | Observable<boolean> | Promise<boolean>'. | |
| Type 'Observable<boolean>' is not assignable to type 'Promise<boolean>'. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "compilerOptions": { | |
| "baseUrl": "", | |
| "target": "es5", | |
| "module": "es6", | |
| "moduleResolution": "node", | |
| "declaration": true, | |
| "noImplicitAny": false, | |
| "sourceMap": true, | |
| "removeComments": true, | |
| "emitDecoratorMetadata": true, | |
| "experimentalDecorators": true, | |
| "outDir": "./dist", | |
| "rootDir": "./src", | |
| "skipLibCheck": true, | |
| "strictNullChecks": false, | |
| "typeRoots": ["./node_modules/@types"], | |
| "types": [ | |
| "node" | |
| ], | |
| "lib": [ | |
| "dom", | |
| "es6" | |
| ] | |
| }, | |
| "compileOnSave": false, | |
| "buildOnSave": false, | |
| "exclude": [ | |
| "node_modules", | |
| "dist", | |
| "**/*.ngfactory.ts", | |
| "**/*.shim.ts", | |
| "**/*.spec.ts" | |
| ], | |
| "angularCompilerOptions": { | |
| "genDir": "dist", | |
| "entryModule": "src/lib/app.module#AppModule" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment