<?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 Re: Puzzled about loaders in Next.js Project in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Puzzled-about-loaders-in-Next-js-Project/m-p/738388#M60098</link>
    <description>&lt;P&gt;Hi Syeda!&lt;/P&gt;&lt;P&gt;Thank you for the reply!&lt;/P&gt;&lt;P&gt;Unfortunately it is still throwing the error.&lt;/P&gt;&lt;P&gt;I was able to bypass the issue using 'ignore-loader'.&lt;/P&gt;&lt;P&gt;However I am unable to see whether or not it'll give me issues in the future. I'll be continuing for now!&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jan 2023 23:16:39 GMT</pubDate>
    <dc:creator>AnxiousBiscuit</dc:creator>
    <dc:date>2023-01-06T23:16:39Z</dc:date>
    <item>
      <title>Puzzled about loaders in Next.js Project</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Puzzled-about-loaders-in-Next-js-Project/m-p/737937#M60066</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using Next.js and I'm trying to create a sandbox environment to test out Hubspot API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I follow the hubspot client direction, it's throwing me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```Module parse failed: Unexpected token (1:10)&lt;BR /&gt;You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file.```&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What would be the recommendation for setting up the next.config.js file? Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 00:10:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Puzzled-about-loaders-in-Next-js-Project/m-p/737937#M60066</guid>
      <dc:creator>AnxiousBiscuit</dc:creator>
      <dc:date>2023-01-06T00:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Puzzled about loaders in Next.js Project</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Puzzled-about-loaders-in-Next-js-Project/m-p/738077#M60070</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/491664"&gt;@AnxiousBiscuit&lt;/a&gt;, You can try configuring the next.config.js file to use a webpack loader for the HubSpot API. For example, if you're using the hubspot-api-js library, you can add the following configuration:&lt;/P&gt;
&lt;P&gt;```&lt;BR /&gt;module.exports = {&lt;BR /&gt;webpack: (config, { isServer }) =&amp;gt; {&lt;BR /&gt;if (isServer) {&lt;BR /&gt;config.externals = [&lt;BR /&gt;...config.externals,&lt;BR /&gt;function(context, request, callback) {&lt;BR /&gt;if (/^hubspot-api-js$/.test(request)) {&lt;BR /&gt;return callback(null, 'commonjs hubspot-api-js')&lt;BR /&gt;}&lt;BR /&gt;callback()&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;return config&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;```&lt;/P&gt;
&lt;P&gt;This should allow you to use the HubSpot API in your Next.js project.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 10:17:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Puzzled-about-loaders-in-Next-js-Project/m-p/738077#M60070</guid>
      <dc:creator>Syeda_Fatima</dc:creator>
      <dc:date>2023-01-06T10:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Puzzled about loaders in Next.js Project</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Puzzled-about-loaders-in-Next-js-Project/m-p/738388#M60098</link>
      <description>&lt;P&gt;Hi Syeda!&lt;/P&gt;&lt;P&gt;Thank you for the reply!&lt;/P&gt;&lt;P&gt;Unfortunately it is still throwing the error.&lt;/P&gt;&lt;P&gt;I was able to bypass the issue using 'ignore-loader'.&lt;/P&gt;&lt;P&gt;However I am unable to see whether or not it'll give me issues in the future. I'll be continuing for now!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 23:16:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Puzzled-about-loaders-in-Next-js-Project/m-p/738388#M60098</guid>
      <dc:creator>AnxiousBiscuit</dc:creator>
      <dc:date>2023-01-06T23:16:39Z</dc:date>
    </item>
  </channel>
</rss>

