<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic spotify-web-api-ts-sdk search compilation error, expected 0 arguments got 2 in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/spotify-web-api-ts-sdk-search-compilation-error-expected-0/m-p/6027461#M13610</link>
    <description>&lt;P&gt;&lt;STRONG&gt;typescript is giving an inaccurate compilation error for use of spotify-web-api-ts-sdk, `expected 0 arguments, but got 2` for `SpotifyApi`.`search` from&amp;nbsp;spotify-web-api-ts-sdk. Note that in the screenshot, the `search` function is defined with arguments as expected (see the console output), the request is actually being made (see the network tab and `initiator` column), and the results are even being rendered (if you can see behind the compilation error overlay to the webpage behind). can anyone help me figure out why typescript is wrongly giving this compilation error?&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Apr 2024 01:08:20 GMT</pubDate>
    <dc:creator>jrmangel</dc:creator>
    <dc:date>2024-04-25T01:08:20Z</dc:date>
    <item>
      <title>spotify-web-api-ts-sdk search compilation error, expected 0 arguments got 2</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/spotify-web-api-ts-sdk-search-compilation-error-expected-0/m-p/6027461#M13610</link>
      <description>&lt;P&gt;&lt;STRONG&gt;typescript is giving an inaccurate compilation error for use of spotify-web-api-ts-sdk, `expected 0 arguments, but got 2` for `SpotifyApi`.`search` from&amp;nbsp;spotify-web-api-ts-sdk. Note that in the screenshot, the `search` function is defined with arguments as expected (see the console output), the request is actually being made (see the network tab and `initiator` column), and the results are even being rendered (if you can see behind the compilation error overlay to the webpage behind). can anyone help me figure out why typescript is wrongly giving this compilation error?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 01:08:20 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/spotify-web-api-ts-sdk-search-compilation-error-expected-0/m-p/6027461#M13610</guid>
      <dc:creator>jrmangel</dc:creator>
      <dc:date>2024-04-25T01:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: spotify-web-api-ts-sdk search compilation error, expected 0 arguments got 2</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/spotify-web-api-ts-sdk-search-compilation-error-expected-0/m-p/6049146#M13747</link>
      <description>&lt;P&gt;I'm running into this issue as well, I'm trying to build a simple React app.&lt;BR /&gt;I found that forcibly updating the version of Typescript being used seems to fix the issue. The latest version of `react-scripts` has a peer dependency of `typescript@"^3.2.1 || ^4"`, so npm will complain when you try to install Typescript 5, but it seems to work okay.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know what the issue with Typescript 4.9 is, but I'm guessing that spotify-web-api-ts-sdk is using a feature that requires Typescript 5 to compile correctly.&lt;/P&gt;&lt;H2&gt;&amp;nbsp;&lt;/H2&gt;</description>
      <pubDate>Sat, 04 May 2024 22:46:36 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/spotify-web-api-ts-sdk-search-compilation-error-expected-0/m-p/6049146#M13747</guid>
      <dc:creator>mjvotaw</dc:creator>
      <dc:date>2024-05-04T22:46:36Z</dc:date>
    </item>
  </channel>
</rss>

