Error thrown running with the RxJS@6.0.0-beta.0 (mini repo included)
See original GitHub issueDescription
Steps to reproduce
mini repo at https://gist.github.com/ztan/adefcaf938a4df7ef92b62c4738b7736
- download the file from the gist
- run
npm run test
Debug Logs
C:\work\projects\sandbox\lint-staged-test> npm run test
> lint-staged-test@0.0.0 test C:\work\projects\sandbox\lint-staged-test
> lint-staged -d
lint-staged:bin Running `lint-staged@7.0.0` +0ms
C:\work\projects\sandbox\lint-staged-test\node_modules\any-observable\register.js:29
throw new Error('Cannot find any-observable implementation nor' +
^
Error: Cannot find any-observable implementation nor global.Observable. You must install polyfill or call require("any-observable/register") with your preferred implementation, e.g. require("any-observable/register")('rxjs') on application load prior to any require("any-observable").
at loadImplementation (C:\work\projects\sandbox\lint-staged-test\node_modules\any-observable\register.js:29:9)
at register (C:\work\projects\sandbox\lint-staged-test\node_modules\any-observable\loader.js:32:18)
at Object.<anonymous> (C:\work\projects\sandbox\lint-staged-test\node_modules\any-observable\index.js:2:39)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! lint-staged-test@0.0.0 test: `lint-staged -d`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the lint-staged-test@0.0.0 test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ztan\AppData\Roaming\npm-cache\_logs\2018-03-23T02_28_36_078Z-debug.log
expand to view
COPY THE DEBUG LOGS HERE
Environment
- OS: Windows 10
- Node.js: 8.9.1
lint-staged
: 7.0.0
Issue Analytics
- State:
- Created 5 years ago
- Reactions:10
- Comments:35 (3 by maintainers)
Top Results From Across the Web
[resolved] RxJS 6.3.0 breaks angular flex layout #827 - GitHub
I just tried to use rxjs 6.3.0 and it seems that it breaks angular flex-layout so I returned to RxJS 6.2.2.
Read more >RxJs Error Handling: Complete Practical Guide
Error handling is an essential part of RxJs, as we will need it in just about ... But what happens if the stream...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It seems Listr depends on RxJS, and because it hasn’t been updated to support RxJS 6, a compatibility package rxjs-compat is required. Once this package is installed, the issue goes away.
Upgrading
lint-staged
to8.1.1
solved the issue