Identifier 'LastEvents' has already been declared. #1

Closed
opened 2023-05-17 16:21:13 +02:00 by 778a69cd · 1 comment
Owner

Hi @johndoe4, ich mach mal einfach über das Issue System weiter, das hilft vllt der Übersichtlichkeit.

Ich habe versucht deinen Commit 81a1ca1c6b auf test.rotes.potsda.mn-3.0.4 zu bauen, aber bekomme diesen Build error.

unpacking sources
unpacking source archive /nix/store/80qgqcpzwfix59ndbgnaq8gjybjdip61-mobilizon-js-src
source root is mobilizon-js-src
patching sources
configuring
building
yarn run v1.22.19
warning Skipping preferred cache folder "/homeless-shelter/.cache/yarn" because it is not writable.
warning Selected the next writable cache folder in the list, will be "/tmp/nix-build-mobilizon-3.0.4.drv-0/.yarn-cache-998".
$ yarn run build:assets && yarn run build:pictures
warning Cannot find a suitable global folder. Tried these: "/usr/local, /homeless-shelter/.yarn"
warning Skipping preferred cache folder "/homeless-shelter/.cache/yarn" because it is not writable.
warning Selected the next writable cache folder in the list, will be "/tmp/nix-build-mobilizon-3.0.4.drv-0/.yarn-cache-998".
$ vite build
warning Cannot find a suitable global folder. Tried these: "/usr/local, /homeless-shelter/.yarn"
vite v3.2.4 building for production...
✓ 84 modules transformed.
[vite-plugin-pwa:build] [@vue/compiler-sfc] Identifier 'LastEvents' has already been declared. (16:7)

/tmp/nix-build-mobilizon-3.0.4.drv-0/mobilizon-js-src/deps/mobilizon/src/views/HomeView.vue
198|  import CloseGroups from "@/components/Local/CloseGroups.vue";
199|  import LastEvents from "@/components/Local/LastEvents.vue";
200|  import LastEvents from "@/components/Local/UpcomingEvents.vue";
   |         ^
201|  import OnlineEvents from "@/components/Local/OnlineEvents.vue";
202|  import {
file: /tmp/nix-build-mobilizon-3.0.4.drv-0/mobilizon-js-src/deps/mobilizon/src/views/HomeView.vue:16:7
error during build:
SyntaxError: [@vue/compiler-sfc] Identifier 'LastEvents' has already been declared. (16:7)

/tmp/nix-build-mobilizon-3.0.4.drv-0/mobilizon-js-src/deps/mobilizon/src/views/HomeView.vue
198|  import CloseGroups from "@/components/Local/CloseGroups.vue";
199|  import LastEvents from "@/components/Local/LastEvents.vue";
200|  import LastEvents from "@/components/Local/UpcomingEvents.vue";
   |         ^
201|  import OnlineEvents from "@/components/Local/OnlineEvents.vue";
202|  import {
    at instantiate (/tmp/nix-build-mobilizon-3.0.4.drv-0/mobilizon-js-src/deps/mobilizon/node_modules/@babel/parser/lib/index.js:67:32)
    at constructor (/tmp/nix-build-mobilizon-3.0.4.drv-0/mobilizon-js-src/deps/mobilizon/node_modules/@babel/parser/lib/index.js:364:12)
    at TypeScriptParserMixin.raise (/tmp/nix-build-mobilizon-3.0.4.drv-0/mobilizon-js-src/deps/mobilizon/node_modules/@babel/parser/lib/index.js:3364:19)
    at TypeScriptScopeHandler.checkRedeclarationInScope (/tmp/nix-build-mobilizon-3.0.4.drv-0/mobilizon-js-src/deps/mobilizon/node_modules/@babel/parser/lib/index.js:1586:19)
    at TypeScriptScopeHandler.declareName (/tmp/nix-build-mobilizon-3.0.4.drv-0/mobilizon-js-src/deps/mobilizon/node_modules/@babel/parser/lib/index.js:1557:12)
    at TypeScriptScopeHandler.declareName (/tmp/nix-build-mobilizon-3.0.4.drv-0/mobilizon-js-src/deps/mobilizon/node_modules/@babel/parser/lib/index.js:7356:11)
    at TypeScriptParserMixin.declareNameFromIdentifier (/tmp/nix-build-mobilizon-3.0.4.drv-0/mobilizon-js-src/deps/mobilizon/node_modules/@babel/parser/lib/index.js:10756:16)
    at TypeScriptParserMixin.checkIdentifier (/tmp/nix-build-mobilizon-3.0.4.drv-0/mobilizon-js-src/deps/mobilizon/node_modules/@babel/parser/lib/index.js:10752:12)
    at TypeScriptParserMixin.checkLVal (/tmp/nix-build-mobilizon-3.0.4.drv-0/mobilizon-js-src/deps/mobilizon/node_modules/@babel/parser/lib/index.js:10686:12)
    at TypeScriptParserMixin.finishImportSpecifier (/tmp/nix-build-mobilizon-3.0.4.drv-0/mobilizon-js-src/deps/mobilizon/node_modules/@babel/parser/lib/index.js:14494:10)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Ich vermute das gleiche Problem wird auf passieren wenn wir den cherry-pick auf main deployen (wozu ich noch nicht gekommen bin).

Kannst du das reproduzieren wenn du das lokal bei dir baust?

Hi @johndoe4, ich mach mal einfach über das Issue System weiter, das hilft vllt der Übersichtlichkeit. Ich habe versucht deinen Commit 81a1ca1c6b2ac394cc746a8dcad7a2491304e859 auf `test.rotes.potsda.mn-3.0.4` zu bauen, aber bekomme diesen Build error. ``` unpacking sources unpacking source archive /nix/store/80qgqcpzwfix59ndbgnaq8gjybjdip61-mobilizon-js-src source root is mobilizon-js-src patching sources configuring building yarn run v1.22.19 warning Skipping preferred cache folder "/homeless-shelter/.cache/yarn" because it is not writable. warning Selected the next writable cache folder in the list, will be "/tmp/nix-build-mobilizon-3.0.4.drv-0/.yarn-cache-998". $ yarn run build:assets && yarn run build:pictures warning Cannot find a suitable global folder. Tried these: "/usr/local, /homeless-shelter/.yarn" warning Skipping preferred cache folder "/homeless-shelter/.cache/yarn" because it is not writable. warning Selected the next writable cache folder in the list, will be "/tmp/nix-build-mobilizon-3.0.4.drv-0/.yarn-cache-998". $ vite build warning Cannot find a suitable global folder. Tried these: "/usr/local, /homeless-shelter/.yarn" vite v3.2.4 building for production... ✓ 84 modules transformed. [vite-plugin-pwa:build] [@vue/compiler-sfc] Identifier 'LastEvents' has already been declared. (16:7) /tmp/nix-build-mobilizon-3.0.4.drv-0/mobilizon-js-src/deps/mobilizon/src/views/HomeView.vue 198| import CloseGroups from "@/components/Local/CloseGroups.vue"; 199| import LastEvents from "@/components/Local/LastEvents.vue"; 200| import LastEvents from "@/components/Local/UpcomingEvents.vue"; | ^ 201| import OnlineEvents from "@/components/Local/OnlineEvents.vue"; 202| import { file: /tmp/nix-build-mobilizon-3.0.4.drv-0/mobilizon-js-src/deps/mobilizon/src/views/HomeView.vue:16:7 error during build: SyntaxError: [@vue/compiler-sfc] Identifier 'LastEvents' has already been declared. (16:7) /tmp/nix-build-mobilizon-3.0.4.drv-0/mobilizon-js-src/deps/mobilizon/src/views/HomeView.vue 198| import CloseGroups from "@/components/Local/CloseGroups.vue"; 199| import LastEvents from "@/components/Local/LastEvents.vue"; 200| import LastEvents from "@/components/Local/UpcomingEvents.vue"; | ^ 201| import OnlineEvents from "@/components/Local/OnlineEvents.vue"; 202| import { at instantiate (/tmp/nix-build-mobilizon-3.0.4.drv-0/mobilizon-js-src/deps/mobilizon/node_modules/@babel/parser/lib/index.js:67:32) at constructor (/tmp/nix-build-mobilizon-3.0.4.drv-0/mobilizon-js-src/deps/mobilizon/node_modules/@babel/parser/lib/index.js:364:12) at TypeScriptParserMixin.raise (/tmp/nix-build-mobilizon-3.0.4.drv-0/mobilizon-js-src/deps/mobilizon/node_modules/@babel/parser/lib/index.js:3364:19) at TypeScriptScopeHandler.checkRedeclarationInScope (/tmp/nix-build-mobilizon-3.0.4.drv-0/mobilizon-js-src/deps/mobilizon/node_modules/@babel/parser/lib/index.js:1586:19) at TypeScriptScopeHandler.declareName (/tmp/nix-build-mobilizon-3.0.4.drv-0/mobilizon-js-src/deps/mobilizon/node_modules/@babel/parser/lib/index.js:1557:12) at TypeScriptScopeHandler.declareName (/tmp/nix-build-mobilizon-3.0.4.drv-0/mobilizon-js-src/deps/mobilizon/node_modules/@babel/parser/lib/index.js:7356:11) at TypeScriptParserMixin.declareNameFromIdentifier (/tmp/nix-build-mobilizon-3.0.4.drv-0/mobilizon-js-src/deps/mobilizon/node_modules/@babel/parser/lib/index.js:10756:16) at TypeScriptParserMixin.checkIdentifier (/tmp/nix-build-mobilizon-3.0.4.drv-0/mobilizon-js-src/deps/mobilizon/node_modules/@babel/parser/lib/index.js:10752:12) at TypeScriptParserMixin.checkLVal (/tmp/nix-build-mobilizon-3.0.4.drv-0/mobilizon-js-src/deps/mobilizon/node_modules/@babel/parser/lib/index.js:10686:12) at TypeScriptParserMixin.finishImportSpecifier (/tmp/nix-build-mobilizon-3.0.4.drv-0/mobilizon-js-src/deps/mobilizon/node_modules/@babel/parser/lib/index.js:14494:10) error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. ``` Ich vermute das gleiche Problem wird auf passieren wenn wir den cherry-pick auf `main` deployen (wozu ich noch nicht gekommen bin). Kannst du das reproduzieren wenn du das lokal bei dir baust?
johndoe4 was assigned by 778a69cd 2023-05-17 16:21:25 +02:00
Collaborator

Wurde mit c5ecaf5d7c behoben.

Wurde mit [c5ecaf5d7c](https://git.potsda.mn/potsda.mn/mobilizon/commit/c5ecaf5d7ca9f5de0fcc4fce4cc871195fcbec8f) behoben.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: potsda.mn/mobilizon#1
No description provided.