bubkoo / html-to-image

✂️ Generates an image from a DOM node using HTML5 canvas and SVG.
MIT License
5.41k stars 505 forks source link

Test package locally #333

Open sbahir opened 1 year ago

sbahir commented 1 year ago

Hello everyone,

Can anyone advise on how I can test this package locally using yarn link ?

I tried to link the package to a react app. I keep getting Module not found errors and I can't find root cause

I used the exact same process for react-joyride and it worked

# inside package
npm install
npm link # link your local repo to your global packages
npm run watch # build the files and watch for changes

# inside react app
npm install
npm link react-joyride # just link your local copy into this project's node_modules
npm start
vivcat[bot] commented 1 year ago

👋 @sbahir

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. To help make it easier for us to investigate your issue, please follow the contributing guidelines.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.