chanind / hanzi-writer

Chinese character stroke order animations and practice quizzes
https://hanziwriter.org
MIT License
3.47k stars 539 forks source link

Don't work with VS code -_- #237

Open Voiletevergaden opened 3 years ago

Voiletevergaden commented 3 years ago

hanzi-writer:3.1.0 I opened it in vs code. and run with my default Browser. it' warning: HanziWriter is not defined``

So, in the test.js I added const HanziWriter = require('hanzi-writer');

it's warning: Uncaught ReferenceError: require is not defined and Failed to load resource: net::ERR_FILE_NOT_FOUND

I already have tried many ways, but it just doesn't work. So somebody can help me, I really don't know how to solve this problem. >_<