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.

Cannot find any-observable implementation nor global.Observable.

See original GitHub issue

Description

I have been following Prettier Husky and lint-staged confirugartion from official Create-React-App: https://create-react-app.dev/docs/setting-up-your-editor/#displaying-lint-output-in-the-editor

And after adding, these default configs to package.json I’m getting error like:

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").

Steps to reproduce

  1. Install Create-React-App
  2. Add default husky + prettier +lint-staged config from official docs

Debug Logs

expand to view adamklepacz@MacBook-Pro-Adam-Kl: ~:Documents:projects:eventguru_front 2020-02-11 15-56-36

Environment

  • OS: Mac OS Catalina 10.15.2
  • Node.js: 12.15.0
  • lint-staged: 10.0.7

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

3reactions
IamMillecommented, Sep 29, 2020

Did you fix it?

Just reinstall it to bump the version: npm r lint-staged && npm i -D lint-staged

0reactions
priyansh2998commented, Oct 14, 2022

Did you fix it?

Just reinstall it to bump the version: npm r lint-staged && npm i -D lint-staged

Thanks it helped

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find any-observable implementation nor global ...
Hi, I was able to install cypress just this morning; right now I can't and I'm getting this issue/error. npm install -D cypress....
Read more >
eslint error : Cannot find any-observable implementation nor ...
I had a similar issue. I deleted the package-lock.json and the node-modules folder, run npm install and everything was fixed.
Read more >
any-observable - npm
Support any Observable library and polyfill. ... Start using any-observable in your project by running `npm i any-observable`.
Read more >
cypress-io/cypress - Gitter
Error : Cannot find any-observable implementation nor global.Observable. You must install polyfill or call require("any-observable/register") with your ...
Read more >
Setting up an Angular 12 workspace with Nx and GitHub Actions
cypress@7.4.0/node_modules/cypress postinstall: Error: Cannot find any-observable implementation nor global.Observable.
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