Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default import "reactGA" import every module _ ES6 #54

Closed
echo178 opened this issue Sep 16, 2022 · 0 comments
Closed

default import "reactGA" import every module _ ES6 #54

echo178 opened this issue Sep 16, 2022 · 0 comments

Comments

@echo178
Copy link

echo178 commented Sep 16, 2022

When I try to default import as the usage stated
"import 'ReactGA' from 'react-ga4'"
ReactGA.initialize('G-0000000000') is not usable and saying it is not a function.
error

in the console.log, it is importing both ReactGAImplementation and default so it can only be initialize through ReactGA.default.initialize(). console_log
Is this intended because the usage tutorial is not stated like that

@echo178 echo178 closed this as completed Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant