Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected token: react-activity-calendar #159

Open
lijimo opened this issue Dec 7, 2023 · 0 comments
Open

Unexpected token: react-activity-calendar #159

lijimo opened this issue Dec 7, 2023 · 0 comments

Comments

@lijimo
Copy link

lijimo commented Dec 7, 2023

After npm install, npm start, I got the following error message:

./node_modules/react-activity-calendar/build/index.es.js 208:40
Module parse failed: Unexpected token (208:40)
You may need an appropriate loader to handle this file type.
|   const weeks = groupByWeeks(data, weekStart);
|   const totalCount = data.reduce((sum, day) => sum + day.count, 0);
>   const year = getYear(parseISO(data[0]?.date));
|   const theme = getTheme(themeProp, color$1);
|   const labels = Object.assign({}, DEFAULT_LABELS, labelsProp);

To resolve this issue, I have run
npm uninstall react-activity-calendar and afterwards npm audit fix --force.

However, I do not know what impact this can have, but it works for building the website successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant