sirchri / employee-shift-scheduler Goto Github PK
View Code? Open in Web Editor NEWA simple employee shift scheduler, based on React, Java (SpringBoot) and PostgreSQL.
License: MIT License
A simple employee shift scheduler, based on React, Java (SpringBoot) and PostgreSQL.
License: MIT License
Hello,
when trying to build the Dockerimage I get the following error:
> [email protected] build
> react-scripts build
Creating` an optimized production build...
Failed to compile.
/client/src/views/calendar.tsx
TypeScript error in /client/src/views/calendar.tsx(278,9):
No overload matches this call.
Overload 1 of 2, '(props: CalendarProps | Readonly<CalendarProps>): Calendar', gave the following error.
Type 'Dispatch<SetStateAction<Date>>' is not assignable to type '(value: Value, event: MouseEvent<HTMLButtonElement, MouseEvent>) => void'.
Types of parameters 'value' and 'value' are incompatible.
Type 'Value' is not assignable to type 'SetStateAction<Date>'.
Type 'null' is not assignable to type 'SetStateAction<Date>'.
Overload 2 of 2, '(props: CalendarProps, context: any): Calendar', gave the following error.
Type 'Dispatch<SetStateAction<Date>>' is not assignable to type '(value: Value, event: MouseEvent<HTMLButtonElement, MouseEvent>) => void'. TS2769
276 | <Calendar
277 | showFixedNumberOfWeeks={true}
> 278 | onChange={setCalendarValue}
| ^
279 | value={calendarValue}
280 | onClickDay={(value) => {
281 | let calendar = calendarRef.current;
The command '/bin/sh -c npm run build' returned a non-zero code: 1
ERROR: Service 'client' failed to build : Build failed
Output of docker version
Client:
Version: 20.10.21
API version: 1.41
Go version: go1.18.1
Git commit: 20.10.21-0ubuntu1~22.04.3
Built: Thu Apr 27 05:57:17 2023
OS/Arch: linux/amd64
Context: default
Experimental: true
Server:
Engine:
Version: 20.10.21
API version: 1.41 (minimum version 1.12)
Go version: go1.18.1
Git commit: 20.10.21-0ubuntu1~22.04.3
Built: Thu Apr 27 05:37:25 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.12-0ubuntu1~22.04.1
GitCommit:
runc:
Version: 1.1.4-0ubuntu1~22.04.3
GitCommit:
docker-init:
Version: 0.19.0
GitCommit:
update the readme file with the recurring event feature documentation
I just cloned your repository and wanted to build the app with docker-compose. However, it fails and a lot of variables are not set.
$ docker-compose up --build
WARNING: The PSQL_ROOT_PASSWORD variable is not set. Defaulting to a blank string.
WARNING: The PSQL_USER variable is not set. Defaulting to a blank string.
WARNING: The PSQL_DATABASE variable is not set. Defaulting to a blank string.
WARNING: The PSQL_LOCAL_PORT variable is not set. Defaulting to a blank string.
WARNING: The PSQL_DOCKER_PORT variable is not set. Defaulting to a blank string.
WARNING: The NODE_LOCAL_PORT variable is not set. Defaulting to a blank string.
WARNING: The NODE_DOCKER_PORT variable is not set. Defaulting to a blank string.
WARNING: The CLIENT_ORIGIN variable is not set. Defaulting to a blank string.
WARNING: The SESSION_SECRET variable is not set. Defaulting to a blank string.
WARNING: The CLIENT_API_BASE_URL variable is not set. Defaulting to a blank string.
WARNING: The REACT_LOCAL_PORT variable is not set. Defaulting to a blank string.
WARNING: The REACT_DOCKER_PORT variable is not set. Defaulting to a blank string.
ERROR: The Compose file './docker-compose.yml' is invalid because:
services.client.ports contains an invalid type, it should be a number, or an object
services.psqldb.ports contains an invalid type, it should be a number, or an object
services.server.ports contains an invalid type, it should be a number, or an object
[build-stage 6/6] RUN npm run build:
#0 0.631
#0 0.631 > [email protected] build
#0 0.631 > react-scripts build
#0 0.631
#0 2.421 Creating an optimized production build...
#0 5.790 One of your dependencies, babel-preset-react-app, is importing the
#0 5.790 "@babel/plugin-proposal-private-property-in-object" package without
#0 5.790 declaring it in its dependencies. This is currently working because
#0 5.790 "@babel/plugin-proposal-private-property-in-object" is already in your
#0 5.790 node_modules folder for unrelated reasons, but it may break at any time.
#0 5.790
#0 5.790 babel-preset-react-app is part of the create-react-app project, which
#0 5.790 is not maintianed anymore. It is thus unlikely that this bug will
#0 5.790 ever be fixed. Add "@babel/plugin-proposal-private-property-in-object" to
#0 5.790 your devDependencies to work around this error. This will make this message
#0 5.790 go away.
#0 5.790
#0 138.1 The build failed because the process exited too early. This probably means the system ran out of memory or someone calledkill -9
on the process.
failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1
zoom/range actions (middle point is today):
navigation actions:
where unit is the current range
[client build-stage 6/6] RUN npm run build:
1.057
1.057 > [email protected] build
1.057 > react-scripts build
1.057
5.095 Creating an optimized production build...
8.782 One of your dependencies, babel-preset-react-app, is importing the
8.782 "@babel/plugin-proposal-private-property-in-object" package without
8.782 declaring it in its dependencies. This is currently working because
8.782 "@babel/plugin-proposal-private-property-in-object" is already in your
8.782 node_modules folder for unrelated reasons, but it may break at any time.
8.782
8.782 babel-preset-react-app is part of the create-react-app project, which
8.782 is not maintianed anymore. It is thus unlikely that this bug will
8.782 ever be fixed. Add "@babel/plugin-proposal-private-property-in-object" to
8.782 your devDependencies to work around this error. This will make this message
8.782 go away.
8.782
137.6 Failed to compile.
137.6
137.6 /client/src/i18n/it.tsx
137.6 TypeScript error in /client/src/i18n/it.tsx(5,9):
137.6 Property 'update_application' is missing in type '{ add_filter: string; add: string; back: string; bulk_actions: string; cancel: string; clear_array_input: string; clear_input_value: string; clone: string; confirm: string; create: string; create_item: string; ... 25 more ...; select_columns: string; }' but required in type '{ [key: string]: string | StringMap; add_filter: string; add: string; back: string; bulk_actions: string; cancel: string; clear_array_input: string; clear_input_value: string; ... 30 more ...; update_application: string; }'. TS2741
137.6
137.6 3 | const customItalianMessages: TranslationMessages = {
137.6 4 | ra: {
137.6 > 5 | action: {
137.6 | ^
137.6 6 | add_filter: 'Aggiungi un filtro',
137.6 7 | add: 'Aggiungi',
137.6 8 | back: 'Indietro',
137.6
137.6
failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1
new page to handle system configs. Save 'em into a new table (_sysconfig
).
In particular start with this parameter:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.