-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Init fails with __WEBPACK_IMPORTED_MODULE_1_react_facebook_pixel__.init is not a function #25
Comments
Seems that something is wrong with the type definitions (at least with the setup we are using). When I change the
then everything works when I import it via The only workaround we are aware of in the moment is to import the
But this requires us also to disable the All in all this seems as a bug to me? Could you confirm? |
I'm having this problem as well. I cannot believe there is this little documentation on this! |
Can you please try
|
Fails with:
Above workaround is terribly wrong. |
I have this issue as well. Is there a workaround, or @zsajjad can you fix? |
@dblarons I have this issue too. Use import |
This looks to be the same thing I've had to do. Definitely a bummer to lose the typing. |
same issue... damn |
same, how long will this be until it get solved? |
I got the same problem as it seems to me I can import it such as follow |
this seemed to work for me |
Hi,
We are trying to install this in our React web app, but hitting the error mentioned below. We are using typescript and importing with
import * as ReactPixel from 'react-facebook-pixel';
. The code compiles successfully, but on the runtime we hit the error.We created a wrapper for any page in exact same way as we did for the ReactGA using the hooks (full code also below).
Any idea what I am doing wrong? Does anyone has any experience with using the module with typescript?
Thanks in advance..
The text was updated successfully, but these errors were encountered: