Cannot find any-observable implementation nor global.Observable.
See original GitHub issueDescription
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
- Install Create-React-App
- Add default husky + prettier +lint-staged config from official docs
Debug Logs
expand to view
Environment
- OS: Mac OS Catalina 10.15.2
- Node.js: 12.15.0
lint-staged
: 10.0.7
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:5
Top 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 >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
Just reinstall it to bump the version:
npm r lint-staged && npm i -D lint-staged
Thanks it helped