phanan / vue-facebook-signin-button

A simple plugin to include a custom Facebook sign-in button into your web app.
137 stars 30 forks source link

Vue TS Cannot find name 'FB'. #11

Open zacsneds opened 5 years ago

zacsneds commented 5 years ago

Hey Great plugin. I have used it on an older project! I have a issue when doing a 'build' my Vue project.

I get "ERROR in /Users/Zac/.../RegisterUser.vue Cannot find name 'FB'. "

The thing is the plugin actually works, even though I get this error on my console & this ERROR is what is stopping my from compile/build.

The FB.Init on my index.html works fine with no errors, but when inside 'RegisterUser.vue', it says FB cant be found.

Do you have any suggestions on how I could get rid of this error? This is a Vue typescript 3.1.3 project.

Thanks in advance!

abbychau commented 5 years ago

put // eslint-disable-next-line no-undef above the line u use FB.*