'Module '"firebase/analytics"' has no exported member 'getAnalytics'

I'm trying to connect my app with google analytics and I'm following the firebase documentation, (https://firebase.google.com/docs/analytics/get-started?platform=web) but when I try to initialize firebase analytics I get Module '"firebase/analytics"' has no exported member 'getAnalytics' when I try to import { getAnalytics } from "firebase/analytics"; I had firebase 7.14.0 and I updated it to the newest (7.24.0), but it still doesn't work.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source