You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 25, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 25, 2025. It is now read-only.
At commit 22a34f1 in file EventItem.tsx there is an extra }) on line 66 that
is causing the build to fail.
node --version
# v14.16.0
npm --version
# 6.14.11
npx recursive-install
docker --version
# Docker version 19.03.5, build 633a0ea838
docker-compose --version
# docker-compose version 1.24.1, build 4667896
cat .env
# IS_DOCKER=TRUE
docker-compose build
# ./src/modules/dashboard/Events/components/EventItem.tsx:66:10# Type error: Unexpected token. Did you mean `{'}'}` or `}`?# 64 | {event.capacity}# 65 | </Typography># > 66 | )}# | ^# 67 | <Typography variant="body2" color="textSecondary" component="p"># 68 | {event.description}# 69 | </Typography># npm ERR! code ELIFECYCLE# npm ERR! errno 1# npm ERR! [email protected] build: `next build`# npm ERR! Exit status 1# npm ERR! # npm ERR! Failed at the [email protected] build script.
Just to see that this error could have been detected before building try:
npm run lint
# ...# /home/northdecoder/workspace/chapter/client/src/modules/dashboard/Events/components# /EventItem.tsx# 66:9 error Parsing error: Unexpected token. Did you mean `{'}'}` or `}`?
...
If you or Tom can verify the fix and submit a PR then we'll get that merged in. Thanks.
Fyi, the client code currently has some errors in it. To run next build successfully make the following changes:
Remove extra curly brace EventItem.tsx line 66
Remove line 50 EventsPage.tsx: className={styles.gridItem}
Remove line 49 VenuesPage.tsx: className={styles.gridItem}
./src/modules/dashboard/Events/components/EventItem.tsx
./src/modules/dashboard/Events/pages/EventsPage.tsx
./src/modules/dashboard/Venues/pages/VenuesPage.tsx
After those changes, then execute npm run build and npm run start
Activity
allella commentedon Mar 14, 2021
@NorthDecoder
@tomnoland reported a few issues and fixes that look related.
This was introduced in #413 (comment)
If you or Tom can verify the fix and submit a PR then we'll get that merged in. Thanks.
fix(event): remove extraneous }) to allow build success (#452)