Help with Script Loader

I'm attempting to integrate my FB/Meta Pixel within my SolidStart Store. Unfortunately whenever I try to integrate it my site either breaks or, the pixel doesn't fire at all. Any idea what I may be doing wrong.
12 Replies
Alex Lohr
Alex Lohr3y ago
Any error messages?
narmia
narmiaOP3y ago
Yes, I tried reimporting it but that didn't help.
Alex Lohr
Alex Lohr3y ago
Ah, it's src, not url!
narmia
narmiaOP3y ago
narmia
narmiaOP3y ago
I changed that but still no luck. It saying src isn't a function but it seems to work in the other examples listed
Alex Lohr
Alex Lohr3y ago
Someone removed the types... Maybe this is one of those scenarios where we now need a cjs-type file. I'll need some time to check that. Would you mind showing your package.json?
narmia
narmiaOP3y ago
of course
narmia
narmiaOP3y ago
Alex Lohr
Alex Lohr3y ago
That's strange, you have set the type to module, so it cannot be due to missing cjs types. Maybe it's solid-start related. I need to test this.
Bsdacres | Mik Draumida
Ever solved?
Alex Lohr
Alex Lohr3y ago
Sorry, lost track of this one. Let me check later.
Bsdacres | Mik Draumida
any luck?

Did you find this page helpful?