question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error thrown running with the RxJS@6.0.0-beta.0 (mini repo included)

See original GitHub issue

Description

Steps to reproduce

mini repo at https://gist.github.com/ztan/adefcaf938a4df7ef92b62c4738b7736

  1. download the file from the gist
  2. 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:closed
  • Created 5 years ago
  • Reactions:10
  • Comments:35 (3 by maintainers)

github_iconTop GitHub Comments

23reactions
ztancommented, Mar 28, 2018

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.

14reactions
0xc0d3rcommented, Nov 18, 2019

Upgrading lint-staged to 8.1.1 solved the issue

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found