Hey, I’m trying to use facebook plugin but I get the error: “Uncaught TypeError: Expected a plugin class, but got undefined. Please verify that the plugin was imported and spelled correctly.”
I know this is a late reply, but if you still have this issue, then I can probably help. If you only installed the @uppy/facebook package, that is your first issue. You’d also need @uppy/core. The docs explain this well.
Also if you are using @uppy/facebook, you should be referring to the plugin by the name you imported as
Note: The docs warn of using the uppy package without tree-shaking configured
You can also use the combined uppy package, which includes all plugins that are maintained by the Uppy team. Only use it if you have tree-shaking set up in your module bundler, otherwise you may end up sending a lot of unused code to your users.
Based of the fact that you are coming from using the CDN, I’m assuming that you aren’t using a module bundler. Therefor, the first approach is probably the best option for you
I hope this helped. Let me know if you have any further issues or questions