Skip to content

Bad entry points in package.json #9404

Description

@benmccann

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

  • Chart.js version: 3.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions