Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

TSError: ⨯ Unable to compile TypeScript ! Sitemap #889

Closed
Sarowar-neo opened this issue Sep 7, 2020 · 0 comments · Fixed by #929
Closed

TSError: ⨯ Unable to compile TypeScript ! Sitemap #889

Sarowar-neo opened this issue Sep 7, 2020 · 0 comments · Fixed by #929
Labels
bug Something isn't working

Comments

@Sarowar-neo
Copy link

npm run sitemap http://localhost:3000/

How can i solve this issue ?
What should i do with ts-node?

TSError: ⨯ Unable to compile TypeScript:
src/core/utils.ts:132:7 - error TS2322: Type 'ParsedQuery' is not assignable to type 'Record<string, string>'.
Index signatures are incompatible.
Type 'string | string[]' is not assignable to type 'string'.
Type 'string[]' is not assignable to type 'string'.

132 let query: Record<string, string> = parseQs(window.location.search.substr(1));

Screenshot from 2020-09-07 12-26-27

@NyanKiyoshi NyanKiyoshi transferred this issue from saleor/saleor Sep 7, 2020
@rboixaderg rboixaderg mentioned this issue Oct 2, 2020
5 tasks
@orzechdev orzechdev added the bug Something isn't working label Oct 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants