chartjs / chartjs/Chart.js

Error in Storybook - LinearScaleBase is not defined

Open
#10,895 9 comments 8 reactions 0 assignees View on GitHub
status: needs test case type: bug
Dominant language
JavaScript
Stars
67.7k
Forks
11.9k
Avg merge
7h 39m
Merged PRs (30d)
5

Description

### Expected behavior

No bug of not used features.

### Current behavior

Hey guys,
After updating from 3.9.1 to 4.0.1 I receive error in our builded Storybook (runtime not on build):
```
Uncaught ReferenceError: LinearScaleBase is not defined
at ./node_modules/chart.js/dist/chart.js (5827.4a9359bf.iframe.bundle.js:2:4868810)
at __webpack_require__ (runtime~main.bfd8d355.iframe.bundle.js:1:387)
at ./src/components/common/DoughnutChart.js (main.ee1fcde1.iframe.bundle.js:1:1188558)
```
- Running locally I don't have such error.
- LinearScaleBase is not something I use anywhere in the codebase

Any suggestions?

### Reproducible sample

None

### Optional extra steps/info to reproduce

_No response_

### Possible solution

_No response_

### Context

_No response_

### chart.js version

v4.0.1

### Browser name and version

_No response_

### Link to your project

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.