angular-token
angular-token copied to clipboard
Can't build package is installed from Github
build
node --version
v10.0.0
npm --version
6.0.1
nvm --version
0.33.11
npm run build
> [email protected] build /home/user/node_modules/angular2-token
> rimraf dist && ng-packagr -p ng-package.json
Building Angular Package
Building entry point 'angular2-token'
Cleaning build directory
Rendering Stylesheets
Rendering Templates
Compiling TypeScript sources through ngc
Bundling to FESM15
BUILD ERROR
Could not resolve './a2t-ui/a2t-ui.module' from .ng_pkg_build/angular2-token/out/public_api.js
Error: Could not resolve './a2t-ui/a2t-ui.module' from .ng_pkg_build/angular2-token/out/public_api.js
at error (/home/user/node_modules/angular2-token/node_modules/rollup/dist/rollup.js:170:15)
at /home/user/node_modules/angular2-token/node_modules/rollup/dist/rollup.js:19580:25
test
npm test
> [email protected] test /home/user/node_modules/angular2-token
> karma start
START:
(node:11200) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
⚠ 「wdm」:
ℹ 「wdm」: Compiled with warnings.
ℹ 「wdm」: Compiling...
[at-loader] Using [email protected] from typescript and "tsconfig.json" from /home/user/node_modules/angular2-token/tsconfig.json.
[at-loader] Checking started in a separate process...
[at-loader] Ok, 1.192 sec.
⚠ 「wdm」:
ℹ 「wdm」: Compiled with warnings.
18 05 2018 23:12:12.543:INFO [karma]: Karma v2.0.2 server started at http://0.0.0.0:9876/
18 05 2018 23:12:12.545:INFO [launcher]: Launching browser Chrome with unlimited concurrency
18 05 2018 23:12:12.633:INFO [launcher]: Starting browser Chrome
ℹ 「wdm」: Compiling...
[at-loader] Checking started in a separate process...
[at-loader] Ok, 0.004 sec.
⚠ 「wdm」:
ℹ 「wdm」: Compiled with warnings.
ℹ 「wdm」: Compiling...
18 05 2018 23:12:40.588:INFO [Chrome 66.0.3359 (Linux 0.0.0)]: Connected on socket qfKp6xrqQFsqXnULAAAB with id 23799729
Angular2TokenService
✔ validateToken should call signOut when it returns status 401
✔ validateToken should not call signOut when it returns status 401
✔ Methods should send to configured path
✔ signOut method should clear local storage
✔ signIn method should receive headers and set local storage
18 05 2018 23:12:58.115:WARN [Chrome 66.0.3359 (Linux 0.0.0)]: Disconnected (1 times), because no message in 10000 ms.
Chrome 66.0.3359 (Linux 0.0.0) ERROR
Disconnected, because no message in 10000 ms.
Chrome 66.0.3359 (Linux 0.0.0) ERROR
Disconnected, because no message in 10000 ms.
Finished in 15.373 secs / 0.192 secs @ 23:12:58 GMT+0300 (MSK)
=============================== Coverage summary ===============================
Statements : 100% ( 0/0 )
Branches : 100% ( 0/0 )
Functions : 100% ( 0/0 )
Lines : 100% ( 0/0 )
================================================================================
[at-loader] Checking started in a separate process...
[at-loader] Ok, 0.004 sec.
18 05 2018 23:13:05.733:WARN [launcher]: Chrome was not killed in 2000 ms, sending SIGKILL.
npm ERR! Test failed. See above for more details.
Could you try again? Should be fixed by now.
the same:
npm run build
> [email protected] build /node_modules/angular2-token
> rimraf dist && ng-packagr -p ng-package.json
Building Angular Package
Building entry point 'angular2-token'
Rendering Stylesheets
Rendering Templates
Compiling TypeScript sources through ngc
Bundling to FESM2015
BUILD ERROR
Could not resolve './a2t-ui/a2t-ui.component' from dist/esm2015/angular2-token.js
Error: Could not resolve './a2t-ui/a2t-ui.component' from dist/esm2015/angular2-token.js
at error (/node_modules/angular2-token/node_modules/rollup/dist/rollup.js:199:15)
at /node_modules/angular2-token/node_modules/rollup/dist/rollup.js:20784:25
npm ERR! code ELIFECYCLE
npm ERR! errno 111
npm ERR! [email protected] build: `rimraf dist && ng-packagr -p ng-package.json`
npm ERR! Exit status 111
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.