0๐
I have the same error with Chart.js 4.3, chartjs-adapter-moment 1.0.1 and Node 20.
It works when I place/change the following lines in node_modules\chartjs-adapter-moment\package.json
:
"type": "module",
"main": "dist/chartjs-adapter-moment.esm.js",
Source:stackexchange.com