Skip to main content
Question

Firebase import

  • March 15, 2023
  • 1 reply
  • 634 views

When I import and initialize firebase in Typescript file I have an Unexpected token error.
What is the good way to import the dependencie ?

This topic has been closed for replies.

1 reply

Michael_Yagudaev

What are you using as your bundler? This starter kit/library has been the simplest I found: Create Figma Plugin

It’s been a delight to use.

Also you will need to persist data using figma.clientStorage instead of localStorage or cookies as those are not available in plugins. This gist might help with that:

gist.github.com

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings