Comments (8)
It's been a while since I've worked on this. It probably needs to be updated to use the async-script-loader
our other projects use.
However, it is running and working on our site, so I'm confused as to why you'd see this issue.
from svelte-facebook-pixel.
Sapper probably. Not sure if window
is available.
from svelte-facebook-pixel.
I wrote it for, and am using it in Sapper, so not that.
from svelte-facebook-pixel.
Also running into this error, working with sapper
from svelte-facebook-pixel.
not sure if this is helpful but if I enable the component, the error goes away, but i get a duplicate pixel error
<script>
import FacebookPixel from '@beyonk/svelte-facebook-pixel';
import {onMount} from 'svelte';
let fb;
onMount(() => {
fb.enable()
fb.track()
})
</script>
<FacebookPixel bind:this={fb} id={123123}/>
from svelte-facebook-pixel.
When I get a minute I'll update this to use the new lib that I use in my other modules. That should fix these errors, I suspect facebook made some updates which have broken their SDK for this use case, which they seem prone to doing.
from svelte-facebook-pixel.
Yeah i think facebook updated their sdk along with a bunch of stuff pretty recently
from svelte-facebook-pixel.
Hi we will be refactoring this package in the next couple of days. If you're still seeing this issue afterwards please re-open this issue.
from svelte-facebook-pixel.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svelte-facebook-pixel.