chartjs / chartjs/Chart.js

Module parse failed: Unexpected token (567:17)

Open
#11,375 10 comments 6 reactions 0 assignees View on GitHub
type: bug
Dominant language
JavaScript
Stars
67.7k
Forks
11.9k
Avg merge
7h 39m
Merged PRs (30d)
5

Description

### Expected behavior

i create test app on codepen it work. but localy on symfony i have error

### Current behavior

after first install by npm and run watch an symfony i have
Module parse failed: Unexpected token (567:17)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file.
class DatasetController {
> static defaults = {};
| static datasetElementType = null;
| static dataElementType = null;

### Reproducible sample

can not

### Optional extra steps/info to reproduce

_No response_

### Possible solution

_No response_

### Context

_No response_

### chart.js version

4.3.0

### 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.