Closed diiirt closed 3 years ago
attempting: cd node_modules/matrix-react-sdk; yarn reskindex then: yarn dist
yarn run v1.22.5
$ scripts/package.sh
$ rimraf lib webapp
$ yarn clean && yarn build:genfiles && yarn build:bundle
$ rimraf lib webapp
$ yarn reskindex && yarn build:res && yarn build:jitsi
$ reskindex -h src/header
Reskindex completed
$ node scripts/copy-res.js
$ node scripts/build-jitsi.js
Making webapp directory
Downloading Jitsi script
Done with Jitsi download
$ webpack --progress --bail --mode production
Hash: 7f183481b308450ff6f4
Version: webpack 4.46.0
Time: 70828ms
Built at: 07/10/2021 1:37:39 PM
382 assets
Entrypoint bundle = bundles/7f183481b308450ff6f4/bundle.css bundles/7f183481b308450ff6f4/bundle.js bundles/7f183481b308450ff6f4/b
undle.js.map (preload: bundles/7f183481b308450ff6f4/vendors~init.js bundles/7f183481b308450ff6f4/vendors~init.js.map bundles/7f18
3481b308450ff6f4/init.js bundles/7f183481b308450ff6f4/init.js.map)
Entrypoint indexeddb-worker = bundles/7f183481b308450ff6f4/indexeddb-worker.js bundles/7f183481b308450ff6f4/indexeddb-worker.js.m
ap
Entrypoint mobileguide = bundles/7f183481b308450ff6f4/mobileguide.js bundles/7f183481b308450ff6f4/mobileguide.js.map
Entrypoint jitsi = bundles/7f183481b308450ff6f4/jitsi.css bundles/7f183481b308450ff6f4/jitsi.js bundles/7f183481b308450ff6f4/jits
i.js.map
Entrypoint usercontent = bundles/7f183481b308450ff6f4/usercontent.js bundles/7f183481b308450ff6f4/usercontent.js.map
Entrypoint recorder-worklet = bundles/7f183481b308450ff6f4/recorder-worklet.js bundles/7f183481b308450ff6f4/recorder-worklet.js.m
ap
Entrypoint theme-legacy = bundles/7f183481b308450ff6f4/theme-legacy.css bundles/7f183481b308450ff6f4/theme-legacy.js bundles/7f18
3481b308450ff6f4/theme-legacy.js.map
Entrypoint theme-legacy-dark = bundles/7f183481b308450ff6f4/theme-legacy-dark.css bundles/7f183481b308450ff6f4/theme-legacy-dark.
js bundles/7f183481b308450ff6f4/theme-legacy-dark.js.map
Entrypoint theme-light = bundles/7f183481b308450ff6f4/theme-light.css bundles/7f183481b308450ff6f4/theme-light.js bundles/7f18348
1b308450ff6f4/theme-light.js.map
Entrypoint theme-dark = bundles/7f183481b308450ff6f4/theme-dark.css bundles/7f183481b308450ff6f4/theme-dark.js bundles/7f183481b3
08450ff6f4/theme-dark.js.map
Entrypoint theme-light-custom = bundles/7f183481b308450ff6f4/theme-light-custom.css bundles/7f183481b308450ff6f4/theme-light-cust
om.js bundles/7f183481b308450ff6f4/theme-light-custom.js.map
Entrypoint theme-dark-custom = bundles/7f183481b308450ff6f4/theme-dark-custom.css bundles/7f183481b308450ff6f4/theme-dark-custom.
js bundles/7f183481b308450ff6f4/theme-dark-custom.js.map
[7] (webpack)/buildin/global.js 472 bytes {13} {15} {25} [built]
[32] ./src/vector/getconfig.ts 2.67 KiB {14} {16} [built]
[33] ./src/vector/url_utils.ts 1.43 KiB {8} [built]
[35] ./node_modules/matrix-js-sdk/src/indexeddb-worker.js + 1 modules 5.33 KiB {13} [built]
| 2 modules
[73] ./src/vector/index.ts 9.9 KiB {8} [built]
[77] ./src/vector/modernizr.js 12.1 KiB {8} [built]
[78] ./src/vector/indexeddb-worker.ts 747 bytes {13} [built]
[79] ./src/vector/mobile_guide/index.ts 3.66 KiB {16} [built]
[80] ./src/vector/jitsi/index.ts 8.64 KiB {15} [built]
[81] ./src/vector/jitsi/index.scss 39 bytes {15} [built]
[90] ./src/vector/init.tsx + 5 modules 38.1 KiB {14} [built]
| ./src/vector/init.tsx 6.42 KiB [built]
| ./src/vector/platform/ElectronPlatform.tsx 18.2 KiB [built]
| ./src/vector/platform/WebPlatform.ts 7.24 KiB [built]
| ./src/vector/platform/PWAPlatform.ts 967 bytes [built]
| ./src/vector/rageshakesetup.ts 2.57 KiB [built]
| ./src/vector/platform/VectorBasePlatform.ts 2.49 KiB [built]
[98] ./node_modules/matrix-react-sdk/src/settings/SettingsStore.ts + 9 modules 60.3 KiB {25} [built]
| 10 modules
[1263] ./src/vector/app.tsx 10.3 KiB {10} [built]
[1264] ./src/async-components/structures/ErrorView.tsx 2.15 KiB {12} [built]
[1265] ./src/async-components/structures/CompatibilityView.tsx 5.74 KiB {9} [built]
+ 1266 hidden modules
WARNING in ./node_modules/matrix-react-sdk/src/components/structures/RoomView.tsx 1926:62-83
"export 'NotificationCountType' was not found in 'matrix-js-sdk/src/models/room'
@ ./node_modules/matrix-react-sdk/src/component-index.js
@ ./node_modules/matrix-react-sdk/src/Skinner.js
@ ./node_modules/matrix-react-sdk/src/index.js
@ ./src/vector/init.tsx
@ ./src/vector/index.ts
ERROR in ./node_modules/matrix-react-sdk/src/components/structures/FilePanel.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: /home/user/element-web/node_modules/matrix-react-sdk/src/components/structures/FilePanel.js: Unexpected token, expec
ted "," (162:34)
160 | };
161 |
> 162 | async updateTimelineSet(roomId: string) {
| ^
163 | const client = MatrixClientPeg.get();
164 | const room = client.getRoom(roomId);
165 | const eventIndex = EventIndexPeg.get();
at Object._raise (/home/user/element-web/node_modules/@babel/parser/lib/index.js:748:17)
at Object.raiseWithData (/home/user/element-web/node_modules/@babel/parser/lib/index.js:741:17)
at Object.raise (/home/user/element-web/node_modules/@babel/parser/lib/index.js:735:17)
at Object.unexpected (/home/user/element-web/node_modules/@babel/parser/lib/index.js:9101:16)
at Object.expect (/home/user/element-web/node_modules/@babel/parser/lib/index.js:9087:28)
at Object.parseBindingList (/home/user/element-web/node_modules/@babel/parser/lib/index.js:9506:14)
at Object.parseFunctionParams (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12411:24)
at Object.parseMethod (/home/user/element-web/node_modules/@babel/parser/lib/index.js:11154:10)
at Object.pushClassMethod (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12701:30)
at Object.parseClassMemberWithIsStatic (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12615:14)
at Object.parseClassMember (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12532:10)
at withTopicForbiddingContext (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12477:14)
at Object.withTopicForbiddingContext (/home/user/element-web/node_modules/@babel/parser/lib/index.js:11516:14)
at Object.parseClassBody (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12454:10)
at Object.parseClass (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12427:22)
at Object.parseStatementContent (/home/user/element-web/node_modules/@babel/parser/lib/index.js:11718:21)
at Object.parseStatement (/home/user/element-web/node_modules/@babel/parser/lib/index.js:11676:17)
at Object.parseBlockOrModuleBlockBody (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12258:25)
at Object.parseBlockBody (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12249:10)
at Object.parseTopLevel (/home/user/element-web/node_modules/@babel/parser/lib/index.js:11607:10)
at Object.parse (/home/user/element-web/node_modules/@babel/parser/lib/index.js:13415:10)
at parse (/home/user/element-web/node_modules/@babel/parser/lib/index.js:13468:38)
at parser (/home/user/element-web/node_modules/@babel/core/lib/parser/index.js:54:34)
at parser.next (<anonymous>)
at normalizeFile (/home/user/element-web/node_modules/@babel/core/lib/transformation/normalize-file.js:99:38)
at normalizeFile.next (<anonymous>)
at run (/home/user/element-web/node_modules/@babel/core/lib/transformation/index.js:31:50)
at run.next (<anonymous>)
at Function.transform (/home/user/element-web/node_modules/@babel/core/lib/transform.js:27:41)
at transform.next (<anonymous>)
@ ./node_modules/matrix-react-sdk/src/components/structures/RightPanel.tsx 43:0-36 306:49-58
@ ./node_modules/matrix-react-sdk/src/components/structures/SpaceRoomView.tsx
@ ./node_modules/matrix-react-sdk/src/components/views/spaces/SpaceCreateMenu.tsx
@ ./node_modules/matrix-react-sdk/src/components/views/spaces/SpacePanel.tsx
@ ./node_modules/matrix-react-sdk/src/components/structures/LoggedInView.tsx
@ ./node_modules/matrix-react-sdk/src/component-index.js
@ ./node_modules/matrix-react-sdk/src/Skinner.js
@ ./node_modules/matrix-react-sdk/src/index.js
@ ./src/vector/init.tsx
@ ./src/vector/index.ts
ERROR in ./node_modules/matrix-react-sdk/src/components/views/context_menus/MessageContextMenu.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: /home/user/element-web/node_modules/matrix-react-sdk/src/components/views/context_menus/MessageContextMenu.js: Unexp
ected token, expected "," (210:25)
208 | };
209 |
> 210 | onPermalinkClick = (e: Event) => {
| ^
211 | e.preventDefault();
212 | const ShareDialog = sdk.getComponent("dialogs.ShareDialog");
213 | Modal.createTrackedDialog('share room message dialog', '', ShareDialog, {
at Object._raise (/home/user/element-web/node_modules/@babel/parser/lib/index.js:748:17)
at Object.raiseWithData (/home/user/element-web/node_modules/@babel/parser/lib/index.js:741:17)
at Object.raise (/home/user/element-web/node_modules/@babel/parser/lib/index.js:735:17)
at Object.unexpected (/home/user/element-web/node_modules/@babel/parser/lib/index.js:9101:16)
at Object.expect (/home/user/element-web/node_modules/@babel/parser/lib/index.js:9087:28)
at Object.parseParenAndDistinguishExpression (/home/user/element-web/node_modules/@babel/parser/lib/index.js:10736:14)
at Object.parseExprAtom (/home/user/element-web/node_modules/@babel/parser/lib/index.js:10470:21)
at Object.parseExprAtom (/home/user/element-web/node_modules/@babel/parser/lib/index.js:4763:20)
at Object.parseExprSubscripts (/home/user/element-web/node_modules/@babel/parser/lib/index.js:10150:23)
at Object.parseUpdate (/home/user/element-web/node_modules/@babel/parser/lib/index.js:10130:21)
at Object.parseMaybeUnary (/home/user/element-web/node_modules/@babel/parser/lib/index.js:10119:17)
at Object.parseExprOps (/home/user/element-web/node_modules/@babel/parser/lib/index.js:9989:23)
at Object.parseMaybeConditional (/home/user/element-web/node_modules/@babel/parser/lib/index.js:9963:23)
at Object.parseMaybeAssign (/home/user/element-web/node_modules/@babel/parser/lib/index.js:9926:21)
at allowInAnd (/home/user/element-web/node_modules/@babel/parser/lib/index.js:9893:39)
at Object.allowInAnd (/home/user/element-web/node_modules/@babel/parser/lib/index.js:11541:16)
at Object.parseMaybeAssignAllowIn (/home/user/element-web/node_modules/@babel/parser/lib/index.js:9893:17)
at Object.parseInitializer (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12734:44)
at Object.parseClassProperty (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12725:10)
at Object.pushClassProperty (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12690:30)
at Object.parseClassMemberWithIsStatic (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12595:14)
at Object.parseClassMember (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12532:10)
at withTopicForbiddingContext (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12477:14)
at Object.withTopicForbiddingContext (/home/user/element-web/node_modules/@babel/parser/lib/index.js:11516:14)
at Object.parseClassBody (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12454:10)
at Object.parseClass (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12427:22)
at Object.parseExportDefaultExpression (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12874:19)
at Object.parseExport (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12795:31)
at Object.parseStatementContent (/home/user/element-web/node_modules/@babel/parser/lib/index.js:11782:27)
at Object.parseStatement (/home/user/element-web/node_modules/@babel/parser/lib/index.js:11676:17)
@ ./node_modules/matrix-react-sdk/src/components/views/elements/ImageView.tsx 30:0-69 286:43-61
@ ./node_modules/matrix-react-sdk/src/components/views/avatars/RoomAvatar.tsx
@ ./node_modules/matrix-react-sdk/src/components/views/spaces/SpacePanel.tsx
@ ./node_modules/matrix-react-sdk/src/components/structures/LoggedInView.tsx
@ ./node_modules/matrix-react-sdk/src/component-index.js
@ ./node_modules/matrix-react-sdk/src/Skinner.js
@ ./node_modules/matrix-react-sdk/src/index.js
@ ./src/vector/init.tsx
@ ./src/vector/index.ts
ERROR in ./node_modules/matrix-react-sdk/src/components/views/dialogs/TabbedIntegrationManagerDialog.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: /home/user/element-web/node_modules/matrix-react-sdk/src/components/views/dialogs/TabbedIntegrationManagerDialog.js:
Unexpected token, expected "{" (66:23)
64 | }
65 |
> 66 | componentDidMount(): void {
| ^
67 | this.openManager(0, true);
68 | }
69 |
at Object._raise (/home/user/element-web/node_modules/@babel/parser/lib/index.js:748:17)
at Object.raiseWithData (/home/user/element-web/node_modules/@babel/parser/lib/index.js:741:17)
at Object.raise (/home/user/element-web/node_modules/@babel/parser/lib/index.js:735:17)
at Object.unexpected (/home/user/element-web/node_modules/@babel/parser/lib/index.js:9101:16)
at Object.expect (/home/user/element-web/node_modules/@babel/parser/lib/index.js:9087:28)
at Object.parseBlock (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12227:10)
at Object.parseFunctionBody (/home/user/element-web/node_modules/@babel/parser/lib/index.js:11221:24)
at Object.parseFunctionBodyAndFinish (/home/user/element-web/node_modules/@babel/parser/lib/index.js:11205:10)
at Object.parseMethod (/home/user/element-web/node_modules/@babel/parser/lib/index.js:11155:10)
at Object.pushClassMethod (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12701:30)
at Object.parseClassMemberWithIsStatic (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12590:12)
at Object.parseClassMember (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12532:10)
at withTopicForbiddingContext (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12477:14)
at Object.withTopicForbiddingContext (/home/user/element-web/node_modules/@babel/parser/lib/index.js:11516:14)
at Object.parseClassBody (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12454:10)
at Object.parseClass (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12427:22)
at Object.parseExportDefaultExpression (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12874:19)
at Object.parseExport (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12795:31)
at Object.parseStatementContent (/home/user/element-web/node_modules/@babel/parser/lib/index.js:11782:27)
at Object.parseStatement (/home/user/element-web/node_modules/@babel/parser/lib/index.js:11676:17)
at Object.parseBlockOrModuleBlockBody (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12258:25)
at Object.parseBlockBody (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12249:10)
at Object.parseTopLevel (/home/user/element-web/node_modules/@babel/parser/lib/index.js:11607:10)
at Object.parse (/home/user/element-web/node_modules/@babel/parser/lib/index.js:13415:10)
at parse (/home/user/element-web/node_modules/@babel/parser/lib/index.js:13468:38)
at parser (/home/user/element-web/node_modules/@babel/core/lib/parser/index.js:54:34)
at parser.next (<anonymous>)
at normalizeFile (/home/user/element-web/node_modules/@babel/core/lib/transformation/normalize-file.js:99:38)
at normalizeFile.next (<anonymous>)
at run (/home/user/element-web/node_modules/@babel/core/lib/transformation/index.js:31:50)
@ ./node_modules/matrix-react-sdk/src/integrations/IntegrationManagers.ts 22:0-104 170:64-94
@ ./node_modules/matrix-react-sdk/src/Lifecycle.ts
@ ./src/vector/app.tsx
@ ./src/vector/init.tsx
@ ./src/vector/index.ts
ERROR in ./node_modules/matrix-react-sdk/src/components/views/elements/PersistedElement.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: /home/user/element-web/node_modules/matrix-react-sdk/src/components/views/elements/PersistedElement.js: Unexpected t
oken, expected "," (190:35)
188 | }
189 |
> 190 | export const getPersistKey = (appId: string) => 'widget_' + appId;
| ^
191 |
at Object._raise (/home/user/element-web/node_modules/@babel/parser/lib/index.js:748:17)
at Object.raiseWithData (/home/user/element-web/node_modules/@babel/parser/lib/index.js:741:17)
at Object.raise (/home/user/element-web/node_modules/@babel/parser/lib/index.js:735:17)
at Object.unexpected (/home/user/element-web/node_modules/@babel/parser/lib/index.js:9101:16)
at Object.expect (/home/user/element-web/node_modules/@babel/parser/lib/index.js:9087:28)
at Object.parseParenAndDistinguishExpression (/home/user/element-web/node_modules/@babel/parser/lib/index.js:10736:14)
at Object.parseExprAtom (/home/user/element-web/node_modules/@babel/parser/lib/index.js:10470:21)
at Object.parseExprAtom (/home/user/element-web/node_modules/@babel/parser/lib/index.js:4763:20)
at Object.parseExprSubscripts (/home/user/element-web/node_modules/@babel/parser/lib/index.js:10150:23)
at Object.parseUpdate (/home/user/element-web/node_modules/@babel/parser/lib/index.js:10130:21)
at Object.parseMaybeUnary (/home/user/element-web/node_modules/@babel/parser/lib/index.js:10119:17)
at Object.parseExprOps (/home/user/element-web/node_modules/@babel/parser/lib/index.js:9989:23)
at Object.parseMaybeConditional (/home/user/element-web/node_modules/@babel/parser/lib/index.js:9963:23)
at Object.parseMaybeAssign (/home/user/element-web/node_modules/@babel/parser/lib/index.js:9926:21)
at allowInAnd (/home/user/element-web/node_modules/@babel/parser/lib/index.js:9893:39)
at Object.allowInAnd (/home/user/element-web/node_modules/@babel/parser/lib/index.js:11541:16)
at Object.parseMaybeAssignAllowIn (/home/user/element-web/node_modules/@babel/parser/lib/index.js:9893:17)
at Object.parseVar (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12339:70)
at Object.parseVarStatement (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12151:10)
at Object.parseStatementContent (/home/user/element-web/node_modules/@babel/parser/lib/index.js:11743:21)
at Object.parseStatement (/home/user/element-web/node_modules/@babel/parser/lib/index.js:11676:17)
at Object.parseExportDeclaration (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12892:17)
at Object.maybeParseExportDeclaration (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12848:31)
at Object.parseExport (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12786:29)
at Object.parseStatementContent (/home/user/element-web/node_modules/@babel/parser/lib/index.js:11782:27)
at Object.parseStatement (/home/user/element-web/node_modules/@babel/parser/lib/index.js:11676:17)
at Object.parseBlockOrModuleBlockBody (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12258:25)
at Object.parseBlockBody (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12249:10)
at Object.parseTopLevel (/home/user/element-web/node_modules/@babel/parser/lib/index.js:11607:10)
at Object.parse (/home/user/element-web/node_modules/@babel/parser/lib/index.js:13415:10)
@ ./node_modules/matrix-react-sdk/src/components/views/elements/AppTile.js 38:0-69 69:8-24 169:23-36 201:48-64 240:6-22 323:4-20
442:46-62
@ ./node_modules/matrix-react-sdk/src/components/structures/LeftPanelWidget.tsx
@ ./node_modules/matrix-react-sdk/src/component-index.js
@ ./node_modules/matrix-react-sdk/src/Skinner.js
@ ./node_modules/matrix-react-sdk/src/index.js
@ ./src/vector/init.tsx
@ ./src/vector/index.ts
ERROR in ./node_modules/matrix-react-sdk/src/components/views/groups/GroupInviteTile.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: /home/user/element-web/node_modules/matrix-react-sdk/src/components/views/groups/GroupInviteTile.js: Unexpected toke
n (35:20)
33 | @replaceableComponent("views.groups.GroupInviteTile")
34 | export default class GroupInviteTile extends React.Component {
> 35 | static propTypes: {
| ^
36 | group: PropTypes.object.isRequired,
37 | };
38 |
at Object._raise (/home/user/element-web/node_modules/@babel/parser/lib/index.js:748:17)
at Object.raiseWithData (/home/user/element-web/node_modules/@babel/parser/lib/index.js:741:17)
at Object.raise (/home/user/element-web/node_modules/@babel/parser/lib/index.js:735:17)
at Object.unexpected (/home/user/element-web/node_modules/@babel/parser/lib/index.js:9101:16)
at Object.parseClassMemberWithIsStatic (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12639:12)
at Object.parseClassMember (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12532:10)
at withTopicForbiddingContext (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12477:14)
at Object.withTopicForbiddingContext (/home/user/element-web/node_modules/@babel/parser/lib/index.js:11516:14)
at Object.parseClassBody (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12454:10)
at Object.parseClass (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12427:22)
at Object.parseExportDefaultExpression (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12874:19)
at Object.parseExport (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12795:31)
at Object.parseStatementContent (/home/user/element-web/node_modules/@babel/parser/lib/index.js:11782:27)
at Object.parseStatement (/home/user/element-web/node_modules/@babel/parser/lib/index.js:11676:17)
at Object.parseBlockOrModuleBlockBody (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12258:25)
at Object.parseBlockBody (/home/user/element-web/node_modules/@babel/parser/lib/index.js:12249:10)
at Object.parseTopLevel (/home/user/element-web/node_modules/@babel/parser/lib/index.js:11607:10)
at Object.parse (/home/user/element-web/node_modules/@babel/parser/lib/index.js:13415:10)
at parse (/home/user/element-web/node_modules/@babel/parser/lib/index.js:13468:38)
at parser (/home/user/element-web/node_modules/@babel/core/lib/parser/index.js:54:34)
at parser.next (<anonymous>)
at normalizeFile (/home/user/element-web/node_modules/@babel/core/lib/transformation/normalize-file.js:99:38)
at normalizeFile.next (<anonymous>)
at run (/home/user/element-web/node_modules/@babel/core/lib/transformation/index.js:31:50)
at run.next (<anonymous>)
at Function.transform (/home/user/element-web/node_modules/@babel/core/lib/transform.js:27:41)
at transform.next (<anonymous>)
at step (/home/user/element-web/node_modules/gensync/index.js:261:32)
at gen.next (/home/user/element-web/node_modules/gensync/index.js:273:13)
at async.call.value (/home/user/element-web/node_modules/gensync/index.js:223:11)
@ ./node_modules/matrix-react-sdk/src/component-index.js 642:0-85 643:0-28 643:78-106
@ ./node_modules/matrix-react-sdk/src/Skinner.js
@ ./node_modules/matrix-react-sdk/src/index.js
@ ./src/vector/init.tsx
@ ./src/vector/index.ts
Child HtmlWebpackCompiler:
26 assets
Entrypoint HtmlWebpackPlugin_0 = __child-HtmlWebpackPlugin_0
Entrypoint HtmlWebpackPlugin_1 = __child-HtmlWebpackPlugin_1
Entrypoint HtmlWebpackPlugin_2 = __child-HtmlWebpackPlugin_2
Entrypoint HtmlWebpackPlugin_3 = __child-HtmlWebpackPlugin_3
Entrypoint HtmlWebpackPlugin_4 = __child-HtmlWebpackPlugin_4
Entrypoint HtmlWebpackPlugin_5 = __child-HtmlWebpackPlugin_5
[0] ./node_modules/html-webpack-plugin/lib/loader.js!./src/vector/index.html 7.63 KiB {0} [built]
[1] ./res/vector-icons/apple-touch-icon-57.png 64 bytes {0} [built]
[2] ./res/vector-icons/apple-touch-icon-60.png 64 bytes {0} [built]
[3] ./res/vector-icons/apple-touch-icon-72.png 64 bytes {0} [built]
[4] ./res/vector-icons/apple-touch-icon-76.png 64 bytes {0} [built]
[5] ./res/vector-icons/apple-touch-icon-114.png 65 bytes {0} [built]
[6] ./res/vector-icons/apple-touch-icon-120.png 65 bytes {0} [built]
[7] ./res/vector-icons/apple-touch-icon-144.png 65 bytes {0} [built]
[8] ./res/vector-icons/apple-touch-icon-152.png 65 bytes {0} [built]
[9] ./res/vector-icons/apple-touch-icon-180.png 65 bytes {0} [built]
[10] ./res/vector-icons/favicon.ico 52 bytes {0} [built]
[21] ./node_modules/html-webpack-plugin/lib/loader.js!./src/vector/jitsi/index.html 1020 bytes {1} [built]
[22] ./node_modules/html-webpack-plugin/lib/loader.js!./src/vector/mobile_guide/index.html 59 KiB {2} [built]
[23] ./node_modules/html-webpack-plugin/lib/loader.js!./src/vector/static/unable-to-load.html 5.8 KiB {3} [built]
[24] ./node_modules/html-webpack-plugin/lib/loader.js!./src/vector/static/incompatible-browser.html 65.9 KiB {4} [built]
+ 11 hidden modules
Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--5-1!node_modules/postcss-loader/src/index.js??postcss!nod
e_modules/gfm.css/gfm.css:
Entrypoint mini-css-extract-plugin = *
2 modules
Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--5-1!node_modules/postcss-loader/src/index.js??postcss!nod
e_modules/highlight.js/styles/github.css:
Entrypoint mini-css-extract-plugin = *
2 modules
Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--5-1!node_modules/postcss-loader/src/index.js??postcss!nod
e_modules/katex/dist/katex.css:
Entrypoint mini-css-extract-plugin = *
63 modules
Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--6-1!node_modules/postcss-loader/src/index.js??postcss!nod
e_modules/matrix-react-sdk/res/themes/dark-custom/css/dark-custom.scss:
Entrypoint mini-css-extract-plugin = *
167 modules
WARNING in ./node_modules/matrix-react-sdk/res/themes/dark-custom/css/dark-custom.scss (./node_modules/css-loader/dist/cjs.js
??ref--6-1!./node_modules/postcss-loader/src??postcss!./node_modules/matrix-react-sdk/res/themes/dark-custom/css/dark-custom.scss
)
Module Warning (from ./node_modules/postcss-loader/src/index.js):
Warning
(88:5) start value has mixed support, consider using flex-start instead
Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--6-1!node_modules/postcss-loader/src/index.js??postcss!nod
e_modules/matrix-react-sdk/res/themes/dark/css/dark.scss:
Entrypoint mini-css-extract-plugin = *
180 modules
WARNING in ./node_modules/matrix-react-sdk/res/themes/dark/css/dark.scss (./node_modules/css-loader/dist/cjs.js??ref--6-1!./n
ode_modules/postcss-loader/src??postcss!./node_modules/matrix-react-sdk/res/themes/dark/css/dark.scss)
Module Warning (from ./node_modules/postcss-loader/src/index.js):
Warning
(88:5) start value has mixed support, consider using flex-start instead
Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--6-1!node_modules/postcss-loader/src/index.js??postcss!nod
e_modules/matrix-react-sdk/res/themes/legacy-dark/css/legacy-dark.scss:
Entrypoint mini-css-extract-plugin = *
167 modules
WARNING in ./node_modules/matrix-react-sdk/res/themes/legacy-dark/css/legacy-dark.scss (./node_modules/css-loader/dist/cjs.js
??ref--6-1!./node_modules/postcss-loader/src??postcss!./node_modules/matrix-react-sdk/res/themes/legacy-dark/css/legacy-dark.scss
)
Module Warning (from ./node_modules/postcss-loader/src/index.js):
Warning
(88:5) start value has mixed support, consider using flex-start instead
Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--6-1!node_modules/postcss-loader/src/index.js??postcss!nod
e_modules/matrix-react-sdk/res/themes/legacy-light/css/legacy-light.scss:
Entrypoint mini-css-extract-plugin = *
167 modules
WARNING in ./node_modules/matrix-react-sdk/res/themes/legacy-light/css/legacy-light.scss (./node_modules/css-loader/dist/cjs.
js??ref--6-1!./node_modules/postcss-loader/src??postcss!./node_modules/matrix-react-sdk/res/themes/legacy-light/css/legacy-light.
scss)
Module Warning (from ./node_modules/postcss-loader/src/index.js):
Warning
(88:5) start value has mixed support, consider using flex-start instead
Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--6-1!node_modules/postcss-loader/src/index.js??postcss!nod
e_modules/matrix-react-sdk/res/themes/light-custom/css/light-custom.scss:
Entrypoint mini-css-extract-plugin = *
167 modules
WARNING in ./node_modules/matrix-react-sdk/res/themes/light-custom/css/light-custom.scss (./node_modules/css-loader/dist/cjs.
js??ref--6-1!./node_modules/postcss-loader/src??postcss!./node_modules/matrix-react-sdk/res/themes/light-custom/css/light-custom.
scss)
Module Warning (from ./node_modules/postcss-loader/src/index.js):
Warning
(88:5) start value has mixed support, consider using flex-start instead
Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--6-1!node_modules/postcss-loader/src/index.js??postcss!nod
e_modules/matrix-react-sdk/res/themes/light/css/light.scss:
Entrypoint mini-css-extract-plugin = *
180 modules
WARNING in ./node_modules/matrix-react-sdk/res/themes/light/css/light.scss (./node_modules/css-loader/dist/cjs.js??ref--6-1!.
/node_modules/postcss-loader/src??postcss!./node_modules/matrix-react-sdk/res/themes/light/css/light.scss)
Module Warning (from ./node_modules/postcss-loader/src/index.js):
Warning
(88:5) start value has mixed support, consider using flex-start instead
Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--6-1!node_modules/postcss-loader/src/index.js??postcss!res
/css/structures/ErrorView.scss:
Entrypoint mini-css-extract-plugin = *
[0] ./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/postcss-loader/src??postcss!./res/css/structures/ErrorView
.scss 9.89 KiB {0} [built]
+ 1 hidden module
Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--6-1!node_modules/postcss-loader/src/index.js??postcss!src
/vector/jitsi/index.scss:
Entrypoint mini-css-extract-plugin = *
[0] ./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/postcss-loader/src??postcss!./src/vector/jitsi/index.scss
6.35 KiB {0} [built]
+ 4 hidden modules
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
i have updated node to 14.17.3 and rerun but I still get errors but slightly different:
yarn install
yarn install v1.22.5
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@2.3.1: The platform "linux" is incompatible with this module.
info "fsevents@2.3.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.13: The platform "linux" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "matrix-react-sdk > emojibase-data@5.1.1" has unmet peer dependency "emojibase@*".
warning "matrix-react-sdk > linkifyjs@2.1.9" has unmet peer dependency "jquery@>= 1.11.0".
warning "fake-indexeddb > realistic-structured-clone > typeson@5.18.2" has unmet peer dependency "core-js-bundle@^3.6.4".
warning "fake-indexeddb > realistic-structured-clone > typeson@5.18.2" has unmet peer dependency "regenerator-runtime@^0.13.3".
warning "fake-indexeddb > realistic-structured-clone > typeson-registry > base64-arraybuffer-es6@0.6.0" has unmet peer dependency
"core-js-bundle@^3.6.5".
[4/4] Building fresh packages...
Done in 10.07s.
yarn dist
yarn run v1.22.5
$ scripts/package.sh
$ rimraf lib webapp
$ yarn clean && yarn build:genfiles && yarn build:bundle
$ rimraf lib webapp
$ yarn reskindex && yarn build:res && yarn build:jitsi
$ reskindex -h src/header
Reskindex completed
$ node scripts/copy-res.js
$ node scripts/build-jitsi.js
Making webapp directory
Downloading Jitsi script
Done with Jitsi download
$ webpack --progress --bail --mode production
35% building 145/179 modules 34 active /home/user/element-web/node_modules/object-assign/index.jsModuleNotFoundError: Module not
found: Error: Can't resolve './component-index' in '/home/user/element-web/node_modules/matrix-react-sdk/src'
at /home/user/element-web/node_modules/webpack/lib/Compilation.js:925:10
at /home/user/element-web/node_modules/webpack/lib/NormalModuleFactory.js:401:22
at /home/user/element-web/node_modules/webpack/lib/NormalModuleFactory.js:130:21
at /home/user/element-web/node_modules/webpack/lib/NormalModuleFactory.js:224:22
at /home/user/element-web/node_modules/neo-async/async.js:2830:7
at /home/user/element-web/node_modules/neo-async/async.js:6877:13
at /home/user/element-web/node_modules/webpack/lib/NormalModuleFactory.js:214:25
at /home/user/element-web/node_modules/enhanced-resolve/lib/Resolver.js:213:14
at /home/user/element-web/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/user/element-web/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
at /home/user/element-web/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:44:7
at /home/user/element-web/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/user/element-web/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
at /home/user/element-web/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/user/element-web/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:27:1)
at /home/user/element-web/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:67:43
at /home/user/element-web/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/user/element-web/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:16:1)
at /home/user/element-web/node_modules/enhanced-resolve/lib/RootPlugin.js:37:38
at _next44 (eval at create (/home/user/element-web/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:8:1)
at eval (eval at create (/home/user/element-web/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:31:1)
at /home/user/element-web/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/user/element-web/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:27:1)
at /home/user/element-web/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:67:43
at /home/user/element-web/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/user/element-web/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:16:1)
at /home/user/element-web/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/user/element-web/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
at /home/user/element-web/node_modules/enhanced-resolve/lib/DirectoryExistsPlugin.js:27:15
at /home/user/element-web/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:85:15
resolve './component-index' in '/home/user/element-web/node_modules/matrix-react-sdk/src'
using description file: /home/user/element-web/node_modules/matrix-react-sdk/package.json (relative path: ./src)
Field 'matrix_src_browser' doesn't contain a valid alias configuration
Field 'browser' doesn't contain a valid alias configuration
using description file: /home/user/element-web/node_modules/matrix-react-sdk/package.json (relative path: ./src/component-ind
ex)
no extension
Field 'matrix_src_browser' doesn't contain a valid alias configuration
Field 'browser' doesn't contain a valid alias configuration
/home/user/element-web/node_modules/matrix-react-sdk/src/component-index doesn't exist
.js
Field 'matrix_src_browser' doesn't contain a valid alias configuration
Field 'browser' doesn't contain a valid alias configuration
/home/user/element-web/node_modules/matrix-react-sdk/src/component-index.js doesn't exist
.json
Field 'matrix_src_browser' doesn't contain a valid alias configuration
Field 'browser' doesn't contain a valid alias configuration
/home/user/element-web/node_modules/matrix-react-sdk/src/component-index.json doesn't exist
.ts
Field 'matrix_src_browser' doesn't contain a valid alias configuration
Field 'browser' doesn't contain a valid alias configuration
/home/user/element-web/node_modules/matrix-react-sdk/src/component-index.ts doesn't exist
.tsx
Field 'matrix_src_browser' doesn't contain a valid alias configuration
Field 'browser' doesn't contain a valid alias configuration
/home/user/element-web/node_modules/matrix-react-sdk/src/component-index.tsx doesn't exist
as directory
/home/user/element-web/node_modules/matrix-react-sdk/src/component-index doesn't exist
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.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
This would probably be best discussed in the #element-dev room
This would probably be best discussed in the #element-dev room
Why?? I'm not trying to build the development branch. Just follow the standard instructions listed under Build from source on a fresh install of debian 10. It should just work, the instructions must be incomplete/broken.
Building from source means you're building the development branch, or using development tooling to build the project. It's not an intended way of installing if it can be avoided.
Building from source means you're building the development branch, or using development tooling to build the project. It's not an intended way of installing if it can be avoided.
That's total nonsense. Building from source is the first listed method for installing, building the development branch is listed farther down the page. Besides, it's standard fare to build github repos from source, that option should always be working. The install instructions need to be updated and/or a dev needs to spin up a vm and try to build it from source then detail the correct version of npm/node/yarn in order to get the current build working.
You've been asked to visit the room for help, as that's where the developers are to help you with building from source, regardless of branch.
Description
Building from source using instructions gives errors and exit code 1
Steps to reproduce
1. 1st time running yarn install says missing various dependencies, not sure if this is an issue because repeating doesn't show any missing dependencies.
2. yarn dist spits this at the end
Field 'browser' doesn't contain a valid alias configuration using description file: /home/user/element-web/node_modules/matrix-react-sdk/package.json relative path: ./src/component-ind ex no extension Field 'matrix_src_browser' doesn't contain a valid alias configuration Field 'browser' doesn't contain a valid alias configuration /home/user/element-web/node_modules/matrix-react-sdk/src/component-index doesn't exist .js Field 'matrix_src_browser' doesn't contain a valid alias configuration Field 'browser' doesn't contain a valid alias configuration /home/user/element-web/node_modules/matrix-react-sdk/src/component-index.js doesn't exist .json Field 'matrix_src_browser' doesn't contain a valid alias configuration Field 'browser' doesn't contain a valid alias configuration /home/user/element-web/node_modules/matrix-react-sdk/src/component-index.json doesn't exist .ts Field 'matrix_src_browser' doesn't contain a valid alias configuration Field 'browser' doesn't contain a valid alias configuration /home/user/element-web/node_modules/matrix-react-sdk/src/component-index.ts doesn't exist .tsx Field 'matrix_src_browser' doesn't contain a valid alias configuration Field 'browser' doesn't contain a valid alias configuration /home/user/element-web/node_modules/matrix-react-sdk/src/component-index.tsx doesn't exist as directory /home/user/element-web/node_modules/matrix-react-sdk/src/component-index doesn't exist 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. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Version information
debian 10 npm 5.8.0 yarn 1.22.5 node 10.24.0