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

Incomplete Instructions for Local Setup #1

Open
wp99cp opened this issue Nov 7, 2022 · 0 comments
Open

Incomplete Instructions for Local Setup #1

wp99cp opened this issue Nov 7, 2022 · 0 comments

Comments

@wp99cp
Copy link

wp99cp commented Nov 7, 2022

Ich habe versucht dein tournament manager local zum Laufen zu bringen. Ich bin dabei deinen Instructions im Readme gefolgt (Lokale Installation). Leider ohne Erfolg...

Nach dem Ausführen von

docker-compose -f docker-compose.local.yml build

erhalte ich den folgenden Fehler:

-  Building for production...
 ERROR  Failed to compile with 1 error2:42:44 PM

[eslint] 
/app/src/components/DashboardTable.vue
  71:4  error  Mixed spaces and tabs  no-mixed-spaces-and-tabs

✖ 1 problem (1 error, 0 warnings)


You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
 ERROR  Error: Build failed with errors.
Error: Build failed with errors.
    at /app/node_modules/@vue/cli-service/lib/commands/build/index.js:207:23
    at /app/node_modules/webpack/lib/webpack.js:148:8
    at /app/node_modules/webpack/lib/HookWebpackError.js:68:3
    at Hook.eval [as callAsync] (eval at create (/app/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/app/node_modules/tapable/lib/Hook.js:18:14)
    at Cache.shutdown (/app/node_modules/webpack/lib/Cache.js:150:23)
    at /app/node_modules/webpack/lib/Compiler.js:1225:15
    at Hook.eval [as callAsync] (eval at create (/app/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/app/node_modules/tapable/lib/Hook.js:18:14)
    at Compiler.close (/app/node_modules/webpack/lib/Compiler.js:1218:23)
The command '/bin/sh -c npm run build' returned a non-zero code: 1
ERROR: Service 'frontend' failed to build : Build failed

Dies lässt sich relativ einfach beheben, in dem die entsprechende Code-Zeile angepasst wird.

Anschliessend erhalte ich aber einen weiteren Fehler während dem Build für habatu-backend.

models/game.model.ts(6,3): error TS2322: Type '{ type: typeof Schema.Types.ObjectId; ref: string; autopopulate: true; }' is not assignable to type 'SchemaDefinitionProperty<string> | undefined'.
  Types of property 'type' are incompatible.
    Type 'typeof ObjectId' is not assignable to type 'typeof Mixed | StringSchemaDefinition | undefined'.
      Type 'typeof ObjectId' is not assignable to type 'typeof Mixed'.
        Types of property 'schemaName' are incompatible.
          Type '"ObjectId"' is not assignable to type '"Mixed"'.
models/game.model.ts(7,3): error TS2322: Type '{ type: typeof Schema.Types.ObjectId; ref: string; autopopulate: true; }' is not assignable to type 'SchemaDefinitionProperty<string> | undefined'.
  Types of property 'type' are incompatible.
    Type 'typeof ObjectId' is not assignable to type 'typeof Mixed | StringSchemaDefinition | undefined'.
models/game.model.ts(8,3): error TS2322: Type '{ type: typeof Schema.Types.ObjectId; ref: string; autopopulate: true; }' is not assignable to type 'SchemaDefinitionProperty<string> | undefined'.
  Types of property 'type' are incompatible.
    Type 'typeof ObjectId' is not assignable to type 'typeof Mixed | StringSchemaDefinition | undefined'.
models/user.model.ts(10,3): error TS2322: Type '{ type: typeof Schema.Types.ObjectId; ref: string; autopopulate: true; }' is not assignable to type 'SchemaDefinitionProperty<string> | undefined'.
  Types of property 'type' are incompatible.
    Type 'typeof ObjectId' is not assignable to type 'typeof Mixed | StringSchemaDefinition | undefined'.
The command '/bin/sh -c npm run build' returned a non-zero code: 2
ERROR: Service 'habatu-backend' failed to build : Build failed

Was mache ich falsch? Bzw. muss ich in .env.production noch etwas anpassen?

VUE_APP_FRONTEND_HOST=http://localhost
VUE_APP_BACKEND_HOST=http://localhost:8000

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