Closed zastrixarundell closed 1 year ago
bruh
Pull and retry
$ git remote get-url origin
git@github.com:spacebarchat/client.git
$ git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
$ yarn build:web
yarn run v1.22.19
$ webpack --mode production
assets by status 5.85 MiB [cached] 7 assets
orphan modules 3.48 MiB [orphan] 694 modules
runtime modules 1.28 KiB 7 modules
modules by path ./node_modules/ 6.71 MiB 814 modules
modules by path ./src/ 508 KiB 52 modules
asset modules 126 bytes (javascript) 990 KiB (asset)
./assets/fonts/SourceSans/SourceSans3-Light.otf 42 bytes (javascript) 323 KiB (asset) [built] [code generated]
./assets/fonts/SourceSans/SourceSans3-Regular.otf 42 bytes (javascript) 332 KiB (asset) [built] [code generated]
./assets/fonts/SourceSans/SourceSans3-Semibold.otf 42 bytes (javascript) 336 KiB (asset) [built] [code generated]
modules by path ./*.js 1.46 MiB
./index.web.js 474 bytes [built] [code generated]
./styles.web.js + 4 modules 1.46 MiB [built] [code generated]
./app.json 54 bytes [built] [code generated]
./util.inspect (ignored) 15 bytes [built] [code generated]
WARNING in DefinePlugin
Conflicting values for 'process.env.NODE_ENV'
1 WARNING in child compilations (Use 'stats.children: true' resp. '--stats-children' for more details)
1 warning has detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
ERROR in /var/home/zastrix/Documents/client/src/stores/GatewayConnectionStore.ts
./src/stores/GatewayConnectionStore.ts 482:39-55
[tsl] ERROR in /var/home/zastrix/Documents/client/src/stores/GatewayConnectionStore.ts(482,40)
TS2345: Argument of type 'Channel[]' is not assignable to parameter of type 'APIChannel[]'.
Type 'Channel' is missing the following properties from type 'APIChannel': id, created_at, type, parent_id, and 3 more.
ts-loader-default_e3b0c44298fc1c14
@ ./src/stores/DomainStore.ts 1:1527-1562
@ ./src/App.tsx 17:0-53 33:36-49
@ ./index.web.js
webpack 5.76.0 compiled with 1 error and 2 warnings in 32586 ms
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Pulled on master, same issue.
$ git remote get-url origin git@github.com:spacebarchat/client.git
$ git status On branch master Your branch is up to date with 'origin/master'. nothing to commit, working tree clean
$ yarn build:web yarn run v1.22.19 $ webpack --mode production assets by status 5.85 MiB [cached] 7 assets orphan modules 3.48 MiB [orphan] 694 modules runtime modules 1.28 KiB 7 modules modules by path ./node_modules/ 6.71 MiB 814 modules modules by path ./src/ 508 KiB 52 modules asset modules 126 bytes (javascript) 990 KiB (asset) ./assets/fonts/SourceSans/SourceSans3-Light.otf 42 bytes (javascript) 323 KiB (asset) [built] [code generated] ./assets/fonts/SourceSans/SourceSans3-Regular.otf 42 bytes (javascript) 332 KiB (asset) [built] [code generated] ./assets/fonts/SourceSans/SourceSans3-Semibold.otf 42 bytes (javascript) 336 KiB (asset) [built] [code generated] modules by path ./*.js 1.46 MiB ./index.web.js 474 bytes [built] [code generated] ./styles.web.js + 4 modules 1.46 MiB [built] [code generated] ./app.json 54 bytes [built] [code generated] ./util.inspect (ignored) 15 bytes [built] [code generated] WARNING in DefinePlugin Conflicting values for 'process.env.NODE_ENV' 1 WARNING in child compilations (Use 'stats.children: true' resp. '--stats-children' for more details) 1 warning has detailed information that is not shown. Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it. ERROR in /var/home/zastrix/Documents/client/src/stores/GatewayConnectionStore.ts ./src/stores/GatewayConnectionStore.ts 482:39-55 [tsl] ERROR in /var/home/zastrix/Documents/client/src/stores/GatewayConnectionStore.ts(482,40) TS2345: Argument of type 'Channel[]' is not assignable to parameter of type 'APIChannel[]'. Type 'Channel' is missing the following properties from type 'APIChannel': id, created_at, type, parent_id, and 3 more. ts-loader-default_e3b0c44298fc1c14 @ ./src/stores/DomainStore.ts 1:1527-1562 @ ./src/App.tsx 17:0-53 33:36-49 @ ./index.web.js webpack 5.76.0 compiled with 1 error and 2 warnings in 32586 ms error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Pulled on master, same issue.
You didn't pull the changes from GitHub lmao
I did... You can see my local master is up to date with the repo's master... That's the SSH URL for GitHub...
I did... You can see my local master is up to date with the repo's master... That's the SSH URL for GitHub...
just run git pull
$ git pull
Already up to date.
$ yarn build:web
yarn run v1.22.19
$ webpack --mode production
assets by status 5.85 MiB [cached] 7 assets
orphan modules 3.48 MiB [orphan] 694 modules
runtime modules 1.28 KiB 7 modules
modules by path ./node_modules/ 6.71 MiB 814 modules
modules by path ./src/ 508 KiB 52 modules
asset modules 126 bytes (javascript) 990 KiB (asset)
./assets/fonts/SourceSans/SourceSans3-Light.otf 42 bytes (javascript) 323 KiB (asset) [built] [code generated]
./assets/fonts/SourceSans/SourceSans3-Regular.otf 42 bytes (javascript) 332 KiB (asset) [built] [code generated]
./assets/fonts/SourceSans/SourceSans3-Semibold.otf 42 bytes (javascript) 336 KiB (asset) [built] [code generated]
modules by path ./*.js 1.46 MiB
./index.web.js 474 bytes [built] [code generated]
./styles.web.js + 4 modules 1.46 MiB [built] [code generated]
./app.json 54 bytes [built] [code generated]
./util.inspect (ignored) 15 bytes [built] [code generated]
WARNING in DefinePlugin
Conflicting values for 'process.env.NODE_ENV'
1 WARNING in child compilations (Use 'stats.children: true' resp. '--stats-children' for more details)
1 warning has detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
ERROR in /var/home/zastrix/Documents/client/src/stores/GatewayConnectionStore.ts
./src/stores/GatewayConnectionStore.ts 482:39-55
[tsl] ERROR in /var/home/zastrix/Documents/client/src/stores/GatewayConnectionStore.ts(482,40)
TS2345: Argument of type 'Channel[]' is not assignable to parameter of type 'APIChannel[]'.
Type 'Channel' is missing the following properties from type 'APIChannel': id, created_at, type, parent_id, and 3 more.
ts-loader-default_e3b0c44298fc1c14
@ ./src/stores/DomainStore.ts 1:1527-1562
@ ./src/App.tsx 17:0-53 33:36-49
@ ./index.web.js
webpack 5.76.0 compiled with 1 error and 2 warnings in 32416 ms
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
that makes no sense, I updated the package
it builds fine for me on a clean clone
Look like *Script projects indeed are a dumpster file. ¯\(ツ)/¯
I cloned the repository to another location, same remote-url
, same commit and now it works.
Probably some cached files prevented it from compiling.
Whilst trying to run
yarn build:web
the following error is created on this line. Seems that the argument type is not correct.