Giter VIP home page Giter VIP logo

Comments (8)

antony avatar antony commented on July 20, 2024

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.

ralyodio avatar ralyodio commented on July 20, 2024

Sapper probably. Not sure if window is available.

from svelte-facebook-pixel.

antony avatar antony commented on July 20, 2024

I wrote it for, and am using it in Sapper, so not that.

from svelte-facebook-pixel.

Squishy123 avatar Squishy123 commented on July 20, 2024

Also running into this error, working with sapper

from svelte-facebook-pixel.

Squishy123 avatar Squishy123 commented on July 20, 2024

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.

antony avatar antony commented on July 20, 2024

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.

Squishy123 avatar Squishy123 commented on July 20, 2024

Yeah i think facebook updated their sdk along with a bunch of stuff pretty recently

from svelte-facebook-pixel.

dextermb avatar dextermb commented on July 20, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.