I am trying to create a Figma plugin that requires a scarping tool called Puppeteer. I tried installing the library and using it in the index.ts file by simply using const puppeteer = require(‘puppeteer’) but it doesn’t work. Is it possible for me to use puppeteer with figma plugins?
Solved
Import NPM packages into index.ts file
Best answer by Gleb
This is a Node (server-side) library, you cannot use it on the client side (in the browser).
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.