Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[BUG] src/store/store.tsx:152:4 - error TS2345: Argument of type 'Middleware<{}, any, Dispat' is not assignable to parameter of type 'Middleware<any, any, Dispatch<AnyAction>>'. #198

Open
paulmenzel opened this issue Nov 7, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@paulmenzel
Copy link

yarn build fails for me:

$ git log --no-decorate --oneline -1
7c5094c feat/make-transcription-configurable (#195)
$ node --version
v20.13.1
$ yarn build
yarn run v1.22.22
$ tsc && vite build
src/store/store.tsx:152:4 - error TS2345: Argument of type 'Middleware<{}, any, Dispat' is not assignable to parameter of type 'Middleware<any, any, Dispatch<AnyAction>>'.
  Type '(next: (action: unknown) => unknown) => (action: unknown) => unknown' is not a'(next: Dispatch<AnyAction>) => (action: any) => any'.
    Types of parameters 'next' and 'next' are incompatible.
      Types of parameters 'action' and 'action' are incompatible.
        Type 'unknown' is not assignable to type 'AnyAction'.

152    ...(edumeetConfig.reduxLoggingEnabled ? [ createLogger({
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
153     duration: true,
    ~~~~~~~~~~~~~~~~~~~
... 
156     logErrors: true
    ~~~~~~~~~~~~~~~~~~~
157    }) as Redux.Middleware ] : []))
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Found 1 error in src/store/store.tsx:152

error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@paulmenzel paulmenzel added the bug Something isn't working label Nov 7, 2024
@paulmenzel
Copy link
Author

Same with Node.js 22.11.0.

@paulmenzel
Copy link
Author

$ git reset --hard 45a48829a44708573c1dd2721177d610491aa77a
$ git log --no-decorate --oneline -1
45a4882 Make randomizeOnBlank configurable (#193)
$ yarn build
yarn run v1.22.22
$ tsc && vite build
vite v4.5.0 building for production...
<script src="/config/config.js"> in "/index.html" can't be bundled without type="module" attribute
✓ 12775 modules transformed.
build/index.html                               2.26 kB │ gzip:   1.10 kB
build/assets/index-2bf4eb7e.css                0.22 kB │ gzip:   0.15 kB
build/assets/ErrorBoundary-c3f0ec83.js         0.43 kB │ gzip:   0.30 kB
build/assets/index-4c4ccc94.js                 2.08 kB │ gzip:   0.92 kB
build/assets/downloader-0753885e.js            2.54 kB │ gzip:   1.23 kB
build/assets/sandbox-d86829ff.js               2.96 kB │ gzip:   1.08 kB
build/assets/memory-5d49dbb8.js                3.04 kB │ gzip:   1.10 kB
build/assets/index-8c4fb5a6.js                 3.09 kB │ gzip:   1.13 kB
build/assets/index-9c96dce7.js                 6.55 kB │ gzip:   2.22 kB
build/assets/ListItemText-bd2b80e5.js          8.24 kB │ gzip:   2.79 kB
build/assets/cn-4acc1b27.js                    8.68 kB │ gzip:   3.31 kB
build/assets/tw-407a3b7d.js                    8.87 kB │ gzip:   3.71 kB
build/assets/UnsupportedBrowser-2f3c205e.js    9.73 kB │ gzip:   4.17 kB
build/assets/dk-b6052f0f.js                   10.05 kB │ gzip:   3.01 kB
build/assets/es-cbf8ed0d.js                   11.01 kB │ gzip:   3.14 kB
build/assets/ro-1c7e731c.js                   11.17 kB │ gzip:   3.29 kB
build/assets/el-7d576162.js                   11.18 kB │ gzip:   3.96 kB
build/assets/fr-90fcbd0c.js                   11.25 kB │ gzip:   3.28 kB
build/assets/pt-8b69e983.js                   11.65 kB │ gzip:   3.60 kB
build/assets/lv-579c4a20.js                   11.80 kB │ gzip:   3.78 kB
build/assets/tr-223de0d0.js                   12.13 kB │ gzip:   4.01 kB
build/assets/uk-fbfbbef5.js                   12.20 kB │ gzip:   4.64 kB
build/assets/ru-8b8dc4c0.js                   12.28 kB │ gzip:   4.51 kB
build/assets/kk-dca22f37.js                   12.29 kB │ gzip:   4.51 kB
build/assets/hi-d4511322.js                   12.38 kB │ gzip:   4.63 kB
build/assets/cs-aa34867c.js                   12.58 kB │ gzip:   4.21 kB
build/assets/nb-d2223807.js                   12.66 kB │ gzip:   4.10 kB
build/assets/hr-b649479e.js                   13.38 kB │ gzip:   4.29 kB
build/assets/en-94b24582.js                   13.82 kB │ gzip:   4.21 kB
build/assets/de-e384a3c0.js                   13.86 kB │ gzip:   4.35 kB
build/assets/it-2d700ce9.js                   14.47 kB │ gzip:   4.53 kB
build/assets/es6-d1be1ae4.js                  14.54 kB │ gzip:   4.58 kB
build/assets/hu-18c0f861.js                   14.99 kB │ gzip:   5.06 kB
build/assets/pl-10599559.js                   15.03 kB │ gzip:   5.05 kB
build/assets/index-a4e6d945.js                16.86 kB │ gzip:   5.38 kB
build/assets/BlurTrack-cb3128ca.js            19.57 kB │ gzip:   5.93 kB
build/assets/createSvgIcon-6f3c9248.js        22.22 kB │ gzip:   8.24 kB
build/assets/index-17e44084.js                40.02 kB │ gzip:  12.55 kB
build/assets/index-d09a7df8.js                40.30 kB │ gzip:  13.26 kB
build/assets/LandingPage-40ab871c.js          40.93 kB │ gzip:  15.52 kB
build/assets/GenericDialog-c66b6c4b.js        43.94 kB │ gzip:  15.81 kB
build/assets/Message-cdcf3b57.js              59.24 kB │ gzip:  20.26 kB
build/assets/index-f01be943.js                92.41 kB │ gzip:  22.60 kB
build/assets/PrecallTitle-411f7867.js        104.77 kB │ gzip:  32.29 kB
build/assets/App-455c6706.js                 209.30 kB │ gzip:  63.56 kB
build/assets/webtorrent.min-8476e72d.js      215.84 kB │ gzip:  65.57 kB
build/assets/index-afd16d21.js               236.47 kB │ gzip:  32.29 kB
build/assets/index-3cf50ee9.js               284.39 kB │ gzip:  51.44 kB
build/assets/index-484ff66b.js               631.50 kB │ gzip: 190.14 kB

(!) Some chunks are larger than 500 kBs after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
✓ built in 35.17s
Done in 45.78s.

@N7Remus
Copy link
Contributor

N7Remus commented Nov 7, 2024

I can't seem to reproduce it, what branch are you running?
I am testing it on node v20.18.0, by pulling the main branch and builds without any issues.

@paulmenzel
Copy link
Author

Sorry, I guess git log --no-decorate --oneline -1 was buried in the output.

$ git log --no-decorate --oneline -1
7c5094c feat/make-transcription-configurable (#195)
$ git branch --contains 7c5094c
* main

@N7Remus
Copy link
Contributor

N7Remus commented Nov 8, 2024

Sorry my bad, i will check it soon.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants