chanind / hanzi-writer

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

How to upgrade from V2 to V3 #256

Open amygeorge opened 2 years ago

amygeorge commented 2 years ago
Hey nice work! I would like to upgrade to V3 because several characters are missing or don't show up when using V2.3.0, but when I try to upgrade to V3 or later I get the following error: `Uncaught Error: Module parse failed: Unexpected token (14:19) You may need an appropriate loader to handle this file type. } function copyAndMergeDeep(base, override) { const output = { ...base };
at Object../node_modules/hanzi-writer/dist/index.esm.js (:3000/static/js/bundle.js:99028)
at __webpack_require__ (:3000/static/js/bundle.js:708)
at fn (:3000/static/js/bundle.js:113)
at Object../src/KORN351/pages/Okpyeon/OkpyeonHangulContainer.js (:3000/static/js/bundle.js:247267)
at __webpack_require__ (:3000/static/js/bundle.js:708)
at fn (:3000/static/js/bundle.js:113)
at Object../src/App.js (:3000/static/js/bundle.js:233090)
at __webpack_require__ (:3000/static/js/bundle.js:708)
at fn (:3000/static/js/bundle.js:113)
at Object../src/index.js (:3000/static/js/bundle.js:282247)
at __webpack_require__ (:3000/static/js/bundle.js:708)
at fn (:3000/static/js/bundle.js:113)
at Object.0 (:3000/static/js/bundle.js:283655)
at __webpack_require__ (:3000/static/js/bundle.js:708)
at :3000/static/js/bundle.js:806
at :3000/static/js/bundle.js:809`
chanind commented 2 years ago

Which version of node js are you using? If you're using an older version of node js it might not recognize the ... syntax