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
1 created fresh copy of git repo
2 executed docker.sh
2.1 error:
config.json not found
solved by changing COPY in Dockerfile to:
COPY /server/server/config/config.example.json /server/server/config/config.json
[not commited]
2.2 error: [stage-2 6/14] RUN cd /client && npm i && npm run build:
#0 43.57 npm ERR! Cannot read property 'terser-webpack-plugin' of undefined
solved by executing:
npm i terser-webpack-plugin
before running docker.sh
2.3 unsolved errors:
./docker.sh
[+] Building 232.1s (15/22)
=> [internal] load .dockerignore 0.0s
=> => transferring context: 99B 0.0s
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.06kB 0.0s
=> [internal] load metadata for docker.io/library/node:14-slim 1.0s
=> [internal] load build context 0.0s
=> => transferring context: 888.90kB 0.0s
=> CACHED [build-server 1/4] FROM docker.io/library/node:14-slim@sha256:198142146b4c47193348f6415da769bdb5035c16fcab051c38c2 0.0s
=> CACHED https://github.com/ufoscout/docker-compose-wait/releases/download/2.7.2/wait 0.5s
=> [build-client 2/4] COPY client/package-lock.json ./ 0.1s
=> CACHED [stage-2 2/14] RUN npm i -g @craco/craco && npm i -g sequelize && npm i -g sequelize-cli && npm i -g 0.0s
=> [stage-2 3/14] COPY . . 0.2s
=> [build-client 3/4] RUN npm i 14.2s
=> CACHED [build-server 2/4] COPY server/package-lock.json ./ 0.0s
=> CACHED [build-server 3/4] RUN npm i 0.0s
=> [stage-2 4/14] COPY --from=build-client ./node_modules /client/ 1.4s
=> [stage-2 5/14] COPY --from=build-server ./node_modules /server/ 0.7s
=> ERROR [stage-2 6/14] RUN cd /client && npm i && npm run build 213.8s
[stage-2 6/14] RUN cd /client && npm i && npm run build:
#0 44.56
#0 44.56 > @scarf/[email protected] postinstall /client/node_modules/@scarf/scarf
#0 44.56 > node ./report.js
#0 44.56
#0 47.69
#0 47.69 > [email protected] postinstall /client/node_modules/babel-runtime/node_modules/core-js
#0 47.69 > node -e "try{require('./postinstall')}catch(e){}"
#0 47.69
#0 47.75 Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
#0 47.75
#0 47.75 The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
#0 47.75 > https://opencollective.com/core-js
#0 47.75 > https://www.patreon.com/zloirock
#0 47.75
#0 47.75 Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
#0 47.75
#0 47.78
#0 47.78 > [email protected] postinstall /client/node_modules/core-js
#0 47.78 > node -e "try{require('./postinstall')}catch(e){}"
#0 47.78
#0 47.83 Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
#0 47.83
#0 47.83 The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
#0 47.83 > https://opencollective.com/core-js
#0 47.83 > https://www.patreon.com/zloirock
#0 47.83
#0 47.83 Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
#0 47.83
#0 47.84
#0 47.84 > [email protected] postinstall /client/node_modules/core-js-pure
#0 47.84 > node -e "try{require('./postinstall')}catch(e){}"
#0 47.84
#0 47.90 Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
#0 47.90
#0 47.90 The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
#0 47.90 > https://opencollective.com/core-js
#0 47.90 > https://www.patreon.com/zloirock
#0 47.90
#0 47.90 Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
#0 47.90
#0 47.93
#0 47.93 > [email protected] postinstall /client/node_modules/ejs
#0 47.93 > node ./postinstall.js
#0 47.93
#0 47.98 Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)
#0 47.98
#0 48.47 npm WARN lifecycle [email protected]~prepare: cannot run in wd [email protected] cd .. && husky install .husky (wd=/client)
#0 49.75 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/chokidar/node_modules/fsevents):
#0 49.75 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
#0 49.76 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
#0 49.76 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
#0 49.76
#0 49.77 added 1875 packages from 842 contributors and audited 1840 packages in 49.122s
#0 50.82
#0 50.82 155 packages are looking for funding
#0 50.82 run npm fund for details
#0 50.82
#0 50.82 found 179 vulnerabilities (2 low, 46 moderate, 101 high, 30 critical)
#0 50.82 run npm audit fix to fix them, or npm audit for details
#0 51.07
#0 51.07 > [email protected] build /client
#0 51.07 > NODE_OPTIONS=--max-old-space-size=8192 craco build
#0 51.07
#0 52.32 Creating an optimized production build...
#0 53.11 Browserslist: caniuse-lite is outdated. Please run:
#0 53.11 npx browserslist@latest --update-db
#0 53.11
#0 53.11 Why you should do it regularly:
#0 53.11 https://github.com/browserslist/browserslist#browsers-data-updating
#0 213.2 Failed to compile.
#0 213.2
#0 213.2 src/actions/knowledgeUnits.js
#0 213.2 Line 113:36: Replace ⏎··(id,·history·=·null)·=>⏎· with ·(id,·history·=·null)·=> prettier/prettier
#0 213.2 Line 116:1: Delete ·· prettier/prettier
#0 213.2 Line 117:5: Delete ·· prettier/prettier
#0 213.2 Line 118:7: Delete ·· prettier/prettier
#0 213.2 Line 119:1: Replace ········ with ······ prettier/prettier
#0 213.2 Line 120:1: Delete ·· prettier/prettier
#0 213.2 Line 121:9: Delete ·· prettier/prettier
#0 213.2 Line 122:1: Replace ········ with ······ prettier/prettier
#0 213.2 Line 123:1: Delete ·· prettier/prettier
#0 213.2 Line 124:1: Delete ·· prettier/prettier
#0 213.2 Line 125:5: Delete ·· prettier/prettier
#0 213.2 Line 126:5: Delete ·· prettier/prettier
#0 213.2 Line 127:1: Delete ·· prettier/prettier
#0 213.2 Line 128:7: Delete ·· prettier/prettier
#0 213.2 Line 129:1: Delete ·· prettier/prettier
#0 213.2 Line 130:1: Replace ········ with ······ prettier/prettier
#0 213.2 Line 131:1: Delete ·· prettier/prettier
#0 213.2 Line 132:1: Delete ·· prettier/prettier
#0 213.2 Line 133:1: Delete ·· prettier/prettier
#0 213.2 Line 134:3: Delete ·· prettier/prettier
#0 213.2 Line 135:1: Delete ·· prettier/prettier
#0 213.2
#0 213.2 src/actions/learningUnits.js
#0 213.2 Line 181:35: Insert ·( prettier/prettier
#0 213.2 Line 182:3: Replace (learningUnitLanguageId,·tag,·languageId,·learningUnitId,·history with learningUnitLanguageId,⏎··tag,⏎··languageId,⏎··learningUnitId,⏎··history,⏎ prettier/prettier
#0 213.2 Line 183:1: Delete ·· prettier/prettier
#0 213.2 Line 184:5: Delete ·· prettier/prettier
#0 213.2 Line 185:7: Delete ·· prettier/prettier
#0 213.2 Line 186:7: Delete ·· prettier/prettier
#0 213.2 Line 187:1: Replace ·········· with ········ prettier/prettier
#0 213.2 Line 188:1: Delete ·· prettier/prettier
#0 213.2 Line 189:7: Delete ·· prettier/prettier
#0 213.2 Line 190:1: Delete ·· prettier/prettier
#0 213.2 Line 191:7: Delete ·· prettier/prettier
#0 213.2 Line 192:9: Delete ·· prettier/prettier
#0 213.2 Line 193:7: Delete ·· prettier/prettier
#0 213.2 Line 194:1: Delete ·· prettier/prettier
#0 213.2 Line 196:5: Delete ·· prettier/prettier
#0 213.2 Line 197:1: Delete ·· prettier/prettier
#0 213.2 Line 198:7: Delete ·· prettier/prettier
#0 213.2 Line 199:1: Replace ·········· with ········ prettier/prettier
#0 213.2 Line 200:7: Delete ·· prettier/prettier
#0 213.2 Line 201:1: Delete ·· prettier/prettier
#0 213.2 Line 202:1: Delete ·· prettier/prettier
#0 213.2 Line 203:7: Delete ·· prettier/prettier
#0 213.2 Line 204:1: Replace ······ with ···· prettier/prettier
#0 213.2 Line 205:1: Delete ·· prettier/prettier
#0 213.2 Line 206:1: Replace ······ with ···· prettier/prettier
#0 213.2 Line 207:3: Delete ·· prettier/prettier
#0 213.2 Line 208:1: Delete ·· prettier/prettier
#0 213.2 Line 210:38: Replace ⏎··(tagId,·languageId,·learningUnitId,·history)·=>·async·(dispatch with ·(tagId,·languageId,·learningUnitId,·history)·=>·async·(⏎··dispatch,⏎ prettier/prettier
#0 213.2 Line 212:3: Delete ·· prettier/prettier
#0 213.2 Line 213:1: Replace ······ with ···· prettier/prettier
#0 213.2 Line 214:7: Delete ·· prettier/prettier
#0 213.2 Line 215:7: Delete ·· prettier/prettier
#0 213.2 Line 216:1: Delete ·· prettier/prettier
#0 213.2 Line 217:9: Delete ·· prettier/prettier
#0 213.2 Line 218:7: Delete ·· prettier/prettier
#0 213.2 Line 219:1: Delete ·· prettier/prettier
#0 213.2 Line 220:1: Replace ······ with ···· prettier/prettier
#0 213.2 Line 222:1: Delete ·· prettier/prettier
#0 213.2 Line 223:5: Delete ·· prettier/prettier
#0 213.2 Line 224:1: Delete ·· prettier/prettier
#0 213.2 Line 225:9: Delete ·· prettier/prettier
#0 213.2 Line 226:7: Delete ·· prettier/prettier
#0 213.2 Line 227:1: Delete ·· prettier/prettier
#0 213.2 Line 228:1: Replace ·········· with ········ prettier/prettier
#0 213.2 Line 229:7: Delete ·· prettier/prettier
#0 213.2 Line 230:1: Replace ······ with ···· prettier/prettier
#0 213.2 Line 231:1: Delete ·· prettier/prettier
#0 213.2 Line 232:5: Delete ·· prettier/prettier
#0 213.2 Line 233:3: Delete ·· prettier/prettier
#0 213.2 Line 234:1: Delete ·· prettier/prettier
#0 213.2 Line 236:38: Replace ⏎··(tagId,·value,·languageId,·learningUnitId,·history)·=>·async·(dispatch with ·(tagId,·value,·languageId,·learningUnitId,·history)·=>·async·(⏎··dispatch,⏎ prettier/prettier
#0 213.2 Line 238:1: Delete ·· prettier/prettier
#0 213.2 Line 239:5: Delete ·· prettier/prettier
#0 213.2 Line 240:7: Delete ·· prettier/prettier
#0 213.2 Line 241:7: Delete ·· prettier/prettier
#0 213.2 Line 242:1: Replace ·········· with ········ prettier/prettier
#0 213.2 Line 243:1: Delete ·· prettier/prettier
#0 213.2 Line 244:7: Delete ·· prettier/prettier
#0 213.2 Line 245:1: Delete ·· prettier/prettier
#0 213.2 Line 246:7: Delete ·· prettier/prettier
#0 213.2 Line 247:9: Delete ·· prettier/prettier
#0 213.2 Line 248:7: Delete ·· prettier/prettier
#0 213.2 Line 249:1: Replace ······ with ···· prettier/prettier
#0 213.2 Line 251:1: Delete ·· prettier/prettier
#0 213.2 Line 252:1: Replace ······ with ···· prettier/prettier
#0 213.2 Line 253:1: Delete ·· prettier/prettier
#0 213.2 Line 254:1: Replace ·········· with ········ prettier/prettier
#0 213.2 Line 255:7: Delete ·· prettier/prettier
#0 213.2 Line 256:1: Delete ·· prettier/prettier
#0 213.2 Line 257:1: Delete ·· prettier/prettier
#0 213.2 Line 258:7: Delete ·· prettier/prettier
#0 213.2 Line 259:1: Replace ······ with ···· prettier/prettier
#0 213.2 Line 260:1: Delete ·· prettier/prettier
#0 213.2 Line 261:1: Replace ······ with ···· prettier/prettier
#0 213.2 Line 262:3: Delete ·· prettier/prettier
#0 213.2 Line 263:1: Delete ·· prettier/prettier
#0 213.2 Line 265:40: Replace ⏎··(learningUnitId,·targetId,·type,·languageId,·history)·=>·(dispatch with ·(learningUnitId,·targetId,·type,·languageId,·history)·=>·(⏎··dispatch,⏎ prettier/prettier
#0 213.2 Line 267:1: Delete ·· prettier/prettier
#0 213.2 Line 268:1: Replace ······ with ···· prettier/prettier
#0 213.2 Line 269:5: Delete ·· prettier/prettier
#0 213.2 Line 270:1: Replace ········ with ······ prettier/prettier
#0 213.2 Line 271:1: Delete ·· prettier/prettier
#0 213.2 Line 272:5: Delete ·· prettier/prettier
#0 213.2 Line 273:1: Delete ·· prettier/prettier
#0 213.2 Line 274:5: Delete ·· prettier/prettier
#0 213.2 Line 275:1: Replace ········ with ······ prettier/prettier
#0 213.2 Line 276:1: Delete ·· prettier/prettier
#0 213.2 Line 277:5: Delete ·· prettier/prettier
#0 213.2 Line 278:1: Delete ·· prettier/prettier
#0 213.2 Line 279:5: Delete ·· prettier/prettier
#0 213.2 Line 280:1: Delete ·· prettier/prettier
#0 213.2 Line 281:7: Delete ·· prettier/prettier
#0 213.2 Line 282:1: Replace ·········· with ········ prettier/prettier
#0 213.2 Line 283:1: Delete ·· prettier/prettier
#0 213.2 Line 284:9: Delete ·· prettier/prettier
#0 213.2 Line 285:1: Delete ·· prettier/prettier
#0 213.2 Line 286:11: Delete ·· prettier/prettier
#0 213.2 Line 287:9: Delete ·· prettier/prettier
#0 213.2 Line 288:1: Delete ·· prettier/prettier
#0 213.2 Line 289:1: Replace ······ with ···· prettier/prettier
#0 213.2 Line 290:1: Delete ·· prettier/prettier
#0 213.2 Line 291:1: Delete ·· prettier/prettier
#0 213.2 Line 292:1: Delete ·· prettier/prettier
#0 213.2
#0 213.2 src/components/courses/AddContentToCourse.jsx
#0 213.2 Line 34:10: Replace ·actions,·course,·courseUser,·onConfirm,·okBtnText,·history,·fetch,·handleSubmit,·user·}·= with ⏎····actions,⏎····course,⏎····courseUser,⏎····onConfirm,⏎····okBtnText,⏎····history,⏎····fetch,⏎····handleSubmit,⏎····user, prettier/prettier
#0 213.2 Line 35:3: Replace · with }·= prettier/prettier
#0 213.2
#0 213.2 src/components/courses/AddUserToCourse.jsx
#0 213.2 Line 32:10: Replace ·actions,·course,·courseUser,·onConfirm,·okBtnText,·history,·fetch,·roles,·handleSubmit·}·=⏎··· with ⏎····actions,⏎····course,⏎····courseUser,⏎····onConfirm,⏎····okBtnText,⏎····history,⏎····fetch,⏎····roles,⏎····handleSubmit,⏎··}·= prettier/prettier
#0 213.2
#0 213.2 src/components/courses/CourseContent.jsx
#0 213.2 Line 33:10: Replace ·actions,·course,·onConfirm,·okBtnText,·history,·classes,·showConfirmation,·match,·user·}·= with ⏎····actions,⏎····course,⏎····onConfirm,⏎····okBtnText,⏎····history,⏎····classes,⏎····showConfirmation,⏎····match,⏎····user, prettier/prettier
#0 213.2 Line 34:3: Replace · with }·= prettier/prettier
#0 213.2
#0 213.2 src/components/courses/CourseSequences.jsx
#0 213.2 Line 33:10: Replace ·actions,·course,·onConfirm,·okBtnText,·history,·classes,·showConfirmation,·match,·user·}·= with ⏎····actions,⏎····course,⏎····onConfirm,⏎····okBtnText,⏎····history,⏎····classes,⏎····showConfirmation,⏎····match,⏎····user, prettier/prettier
#0 213.2 Line 34:3: Replace · with }·= prettier/prettier
#0 213.2
#0 213.2 src/components/courses/CourseUsers.jsx
#0 213.2 Line 31:10: Replace ·actions,·course,·onConfirm,·okBtnText,·history,·classes,·showConfirmation,·match,·user·}·= with ⏎····actions,⏎····course,⏎····onConfirm,⏎····okBtnText,⏎····history,⏎····classes,⏎····showConfirmation,⏎····match,⏎····user, prettier/prettier
#0 213.2 Line 32:3: Replace · with }·= prettier/prettier
#0 213.2
#0 213.2 src/containers/learningUnits/Show.jsx
#0 213.2 Line 27:12: Replace ·handleKnowledgeUnitDelete,·markReviewed,·markLectored,·items,·match,·user·}·= with ⏎······handleKnowledgeUnitDelete,⏎······markReviewed,⏎······markLectored,⏎······items,⏎······match,⏎······user, prettier/prettier
#0 213.2 Line 28:5: Replace · with }·= prettier/prettier
#0 213.2
#0 213.2 src/containers/learningUnits/Suggest.jsx
#0 213.2 Line 165:3: handleChange should be placed after onKeyUp react/sort-comp
#0 213.2
#0 213.2 Search for the keywords to learn more about each error.
#0 213.2
#0 213.2
#0 213.4 npm ERR! code ELIFECYCLE
#0 213.4 npm ERR! errno 1
#0 213.4 npm ERR! [email protected] build: NODE_OPTIONS=--max-old-space-size=8192 craco build
#0 213.4 npm ERR! Exit status 1
#0 213.4 npm ERR!
#0 213.4 npm ERR! Failed at the [email protected] build script.
#0 213.4 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
#0 213.4
#0 213.4 npm ERR! A complete log of this run can be found in:
#0 213.4 npm ERR! /root/.npm/_logs/2023-06-16T07_01_34_259Z-debug.log
Dockerfile:30
28 | COPY --from=build-server ./node_modules /server/
29 |
30 | >>> RUN cd /client && npm i && npm run build
31 | RUN cd /server && npm i
32 | COPY /server/server/config/config.example.json /server/server/config/config.json
The text was updated successfully, but these errors were encountered:
1 created fresh copy of git repo
2 executed docker.sh
2.1 error:
config.json not found
solved by changing COPY in Dockerfile to:
COPY /server/server/config/config.example.json /server/server/config/config.json
[not commited]
2.2 error: [stage-2 6/14] RUN cd /client && npm i && npm run build:
#0 43.57 npm ERR! Cannot read property 'terser-webpack-plugin' of undefined
solved by executing:
npm i terser-webpack-plugin
before running docker.sh
2.3 unsolved errors:
./docker.sh
[+] Building 232.1s (15/22)
=> [internal] load .dockerignore 0.0s
=> => transferring context: 99B 0.0s
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.06kB 0.0s
=> [internal] load metadata for docker.io/library/node:14-slim 1.0s
=> [internal] load build context 0.0s
=> => transferring context: 888.90kB 0.0s
=> CACHED [build-server 1/4] FROM docker.io/library/node:14-slim@sha256:198142146b4c47193348f6415da769bdb5035c16fcab051c38c2 0.0s
=> CACHED https://github.com/ufoscout/docker-compose-wait/releases/download/2.7.2/wait 0.5s
=> [build-client 2/4] COPY client/package-lock.json ./ 0.1s
=> CACHED [stage-2 2/14] RUN npm i -g @craco/craco && npm i -g sequelize && npm i -g sequelize-cli && npm i -g 0.0s
=> [stage-2 3/14] COPY . . 0.2s
=> [build-client 3/4] RUN npm i 14.2s
=> CACHED [build-server 2/4] COPY server/package-lock.json ./ 0.0s
=> CACHED [build-server 3/4] RUN npm i 0.0s
=> [stage-2 4/14] COPY --from=build-client ./node_modules /client/ 1.4s
=> [stage-2 5/14] COPY --from=build-server ./node_modules /server/ 0.7s
=> ERROR [stage-2 6/14] RUN cd /client && npm i && npm run build 213.8s
Dockerfile:30
28 | COPY --from=build-server ./node_modules /server/
29 |
30 | >>> RUN cd /client && npm i && npm run build
31 | RUN cd /server && npm i
32 | COPY /server/server/config/config.example.json /server/server/config/config.json
The text was updated successfully, but these errors were encountered: