Expected Behavior
UMD build should be listed in browser. main is server entry-point
https://docs.npmjs.com/cli/v7/configuring-npm/package-json#main
https://docs.npmjs.com/cli/v7/configuring-npm/package-json#browser
Current Behavior
Vite is unable to load Chart.js
Possible Solution
Put UMD build in browser. Add "type": "module"
Steps to Reproduce
https://github.com/benmccann/vite-chartjs-bug
Context
Chart.js does not work in SvelteKit
Environment
Expected Behavior
UMD build should be listed in
browser.mainis server entry-pointhttps://docs.npmjs.com/cli/v7/configuring-npm/package-json#main
https://docs.npmjs.com/cli/v7/configuring-npm/package-json#browser
Current Behavior
Vite is unable to load Chart.js
Possible Solution
Put UMD build in
browser. Add"type": "module"Steps to Reproduce
https://github.com/benmccann/vite-chartjs-bug
Context
Chart.js does not work in SvelteKit
Environment