<?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: Importo packages in serverless functions in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Import-packages-in-serverless-functions/m-p/344511#M33751</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/133527"&gt;@dev-valentin&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Digging further into this error, I found this stackoverflow &lt;A href="https://stackoverflow.com/questions/43982152/cannot-find-module-nodemailer" target="_self"&gt;discussion&amp;nbsp;&lt;/A&gt;in which one user state that:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp;&lt;SPAN&gt;nodemailer requires Node.js version 6+ to work, are you currently using version 6+? You can check your node.js version with `node --version`&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Did you include the following dependency on the package.json file?&lt;/P&gt;
&lt;PRE&gt;{
  "dependencies": {
    "nodemailer": "^4.0.1"
  }
}&lt;/PRE&gt;</description>
    <pubDate>Fri, 05 Jun 2020 07:02:23 GMT</pubDate>
    <dc:creator>WendyGoh</dc:creator>
    <dc:date>2020-06-05T07:02:23Z</dc:date>
    <item>
      <title>Import packages in serverless functions</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Import-packages-in-serverless-functions/m-p/343901#M33683</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i started playing around with the cms event serverless implementation. The code from&amp;nbsp;&lt;A href="https://github.com/HubSpot/cms-event-registration" target="_blank" rel="noopener"&gt;https://github.com/HubSpot/cms-event-registration&lt;/A&gt;&amp;nbsp;works good so far.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to extend the functionality by creating a sendmail endpoint. I created a new file called sendMail.js and registered a new GET-Endpoint.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The endpoint was correctly initialized. To send an email i want to use nodemailer. I added the package wir "yarn add nodemailer" and imported the mailer in my sendMail.js.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i get the following error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{"error":"A server error occurred: 2020-06-03T14:54:09.514Z\tundefined\tERROR\tUncaught Exception \t{\"errorType\":\"Runtime.ImportModuleError\",\"errorMessage\":\"Error: Cannot find module 'nodemailer'\&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the complete sendMail.js:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;const util = require('util');
const request = util.promisify(require('request'));

const nodemailer = require('nodemailer');

exports.main = ({ }, sendResponse) =&amp;gt; {
    sendResponse({
        statusCode: 200,
        body: { message: 'Testresponse' },
    });
};&lt;/PRE&gt;&lt;P&gt;Can someone explain why i get this message?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 07:31:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Import-packages-in-serverless-functions/m-p/343901#M33683</guid>
      <dc:creator>dev-valentin</dc:creator>
      <dc:date>2020-06-05T07:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Importo packages in serverless functions</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Import-packages-in-serverless-functions/m-p/344511#M33751</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/133527"&gt;@dev-valentin&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Digging further into this error, I found this stackoverflow &lt;A href="https://stackoverflow.com/questions/43982152/cannot-find-module-nodemailer" target="_self"&gt;discussion&amp;nbsp;&lt;/A&gt;in which one user state that:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp;&lt;SPAN&gt;nodemailer requires Node.js version 6+ to work, are you currently using version 6+? You can check your node.js version with `node --version`&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Did you include the following dependency on the package.json file?&lt;/P&gt;
&lt;PRE&gt;{
  "dependencies": {
    "nodemailer": "^4.0.1"
  }
}&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Jun 2020 07:02:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Import-packages-in-serverless-functions/m-p/344511#M33751</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2020-06-05T07:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Import packages in serverless functions</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Import-packages-in-serverless-functions/m-p/344519#M33757</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/66274"&gt;@WendyGoh&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Locally the Node Version v14.0.0 is installed. I also tried to add nodemailer with these versions:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"nodemailer"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"^6.4.8"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;and&lt;/DIV&gt;&lt;DIV&gt;"nodemailer": "^4.0.1"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But without luck. It's still the same error. Could the webpack.config.js be the problem?&lt;/DIV&gt;&lt;DIV&gt;In the Serverless docs there is part with "How to include other packages":&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="https://designers.hubspot.com/docs/features/serverless-functions/reference" target="_blank"&gt;https://designers.hubspot.com/docs/features/serverless-functions/reference&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;It's is mentioned that you should "combine" your node modules for the serverless functions. How can that be achieved?&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Jun 2020 07:31:14 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Import-packages-in-serverless-functions/m-p/344519#M33757</guid>
      <dc:creator>dev-valentin</dc:creator>
      <dc:date>2020-06-05T07:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Import packages in serverless functions</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Import-packages-in-serverless-functions/m-p/344883#M33819</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/133527"&gt;@dev-valentin&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That could be it however before we go there, I'm wondering if it's because your team is using const instead of var?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking at the same &lt;A href="https://stackoverflow.com/questions/43982152/cannot-find-module-nodemailer" target="_self"&gt;discussion&lt;/A&gt; it looks like most of them suggest to use&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;var nodemailer = require ('nodemailer')&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you try and see if this works?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 03:20:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Import-packages-in-serverless-functions/m-p/344883#M33819</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2020-06-08T03:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Import packages in serverless functions</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Import-packages-in-serverless-functions/m-p/344982#M33845</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/66274"&gt;@WendyGoh&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;both is not working, still shows the same error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No differences between:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;const nodemailer = require ('nodemailer');&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;var nodemailer = require ('nodemailer');&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the way, here is the url to the endpoint:&lt;/P&gt;&lt;P&gt;&lt;A href="http://7837708.hs-sites.com/_hcms/api/sendMail" target="_blank" rel="noopener"&gt;http://7837708.hs-sites.com/_hcms/api/sendMail&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe there is another loading issue?!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 11:31:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Import-packages-in-serverless-functions/m-p/344982#M33845</guid>
      <dc:creator>dev-valentin</dc:creator>
      <dc:date>2020-06-08T11:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Import packages in serverless functions</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Import-packages-in-serverless-functions/m-p/345976#M33942</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/133527"&gt;@dev-valentin&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I checked in this case with my team and was able to confirm that at the moment, we do not support the defining of any node dependencies. We only&amp;nbsp;support a small list of dependencies built-in. You can check out the &lt;A href="https://designers.hubspot.com/docs/features/serverless-functions/reference#preloaded-packages" target="_self"&gt;list&lt;/A&gt; here.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;As such, if you'd like to use the dependency, you would need to use something like webpack to bundle the dependency into your function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While we currently do not have&amp;nbsp;any real resources on that front just yet, do let us know if your team run into any specific issues bundling the dependency.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the webpack docs:&amp;nbsp;&lt;A href="https://webpack.js.org/" target="_self"&gt;https://webpack.js.org/&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 04:16:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Import-packages-in-serverless-functions/m-p/345976#M33942</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2020-06-11T04:16:54Z</dc:date>
    </item>
    <item>
      <title>Betreff: Import packages in serverless functions</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Import-packages-in-serverless-functions/m-p/346620#M34005</link>
      <description>&lt;P&gt;Hi Valentin:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Slightly simplified, your function handler currently looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;const nodemailer = require('nodemailer');

exports.main = ({ }, sendResponse) =&amp;gt; {
    sendResponse({
        statusCode: 200,
        body: { message: 'nodemailer contains: ' + Object.keys(nodemailer) },
    });
};&lt;/PRE&gt;&lt;P&gt;Trying to GET this lambda results in "Error: Cannot find module 'nodemailer'", as you observed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This error can be resolved via webpack using a procedure as follows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, split this file into two files:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;File #1&lt;/P&gt;&lt;PRE&gt;exports.main = ({ }, sendResponse) =&amp;gt; {

// We'll paste the bundled webpack output right here.

};&lt;/PRE&gt;&lt;P&gt;File #2&lt;/P&gt;&lt;PRE&gt;const nodemailer = require('nodemailer');

sendResponse({
    statusCode: 200,
    body: { message: 'nodemailer contains: ' + Object.keys(nodemailer) },
});&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second,&amp;nbsp;we set up "File #2" as a Node app ("File #2" is called "sendMail.js" in the following screenshot). Starting off like so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-06-12 20.33.04.png" style="width: 424px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/28026i54A2BAF4BAA9E151/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-06-12 20.33.04.png" alt="Screenshot 2020-06-12 20.33.04.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "package.json" file looks as follows in my case:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
  "name": "webpack_test",
  "version": "1.0.0",
  "description": "test webpack on HS Serverless",
  "main": "sendMail.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" &amp;amp;&amp;amp; exit 1"
  },
  "author": "v",
  "license": "ISC",
  "dependencies": {
    "nodemailer": "^6.4.8"
  }
}&lt;/PRE&gt;&lt;P&gt;While I set up "webpack.config.js" as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;const path = require('path');

module.exports = {
  entry: './sendMail.js',
  output: {
    filename: 'bundle.js',
    path: path.resolve(__dirname, "webpack_output"),
  },
  node: {
    child_process: 'empty',
    fs: 'empty',
    dns: 'empty',
    net: 'empty',
    tls: 'empty'
  }
};&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Installing dependencies (in particular, "nodemail") via&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$ npm install --save&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Third, we run webpack on this app:&lt;/P&gt;&lt;PRE&gt;$ webpack --config webpack.config.js&lt;/PRE&gt;&lt;P&gt;Webpack has now compiled the node app into a flat file "bundle.js" (as per my config file), which contains close to 1 Million characters of gibberish (i.e. compiled javascript, including all nested dependencies of the app):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-06-12 20.47.41.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/28027iD65D8536F853A34F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-06-12 20.47.41.png" alt="Screenshot 2020-06-12 20.47.41.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fourth and finally, we take this ENTIRE output and paste it into "File #1" (where I had placed the comment):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now when I route a GET request to the function handler in "File #1", I get a successfull response:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-06-12 20.59.02.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/28029iB104F5F4E2B09A88/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-06-12 20.59.02.png" alt="Screenshot 2020-06-12 20.59.02.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yippieh! I hope these steps are helpful for implementing webpack with HubSpot Serverless.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note that I added&lt;/P&gt;&lt;PRE&gt;node: {
    child_process: 'empty',
    fs: 'empty',
    dns: 'empty',
    net: 'empty',
    tls: 'empty'
  }&lt;/PRE&gt;&lt;P&gt;to the webpack configuration file after seeing some rather gruesome access errors. I implemented this fix as per&amp;nbsp;&lt;A href="https://github.com/googleapis/google-api-nodejs-client/issues/1732" target="_blank" rel="noopener"&gt;https://github.com/googleapis/google-api-nodejs-client/issues/1732&lt;/A&gt;&amp;nbsp;, but I haven't checked whether I actually broke the functionality of nodemail.js this way. So this solution might need some more work, but I hope it illustrates the general approach.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks to HubSpotters Mike (@mgallant23) and Derek (@dgervais), whose internal resources on this topic I have relied on in preparing this solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Valentin, feel free to get in touch with any further questions on this topic.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 07:02:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Import-packages-in-serverless-functions/m-p/346620#M34005</guid>
      <dc:creator>vbrech</dc:creator>
      <dc:date>2020-06-15T07:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Import packages in serverless functions</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Import-packages-in-serverless-functions/m-p/492640#M46620</link>
      <description>&lt;P&gt;I am having similar issue. Any idea I can implement with async/await?&lt;BR /&gt;i cant use webpack to bundle a function call with await at top level&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 22:11:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Import-packages-in-serverless-functions/m-p/492640#M46620</guid>
      <dc:creator>SCheung8</dc:creator>
      <dc:date>2021-09-09T22:11:44Z</dc:date>
    </item>
    <item>
      <title>Betreff: Import packages in serverless functions</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Import-packages-in-serverless-functions/m-p/660040#M54606</link>
      <description>&lt;P&gt;I have a public app code running with OAuth methodology, it is successfully running locally.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted that code to be running as soon as the endpoint get hits, so I am trying to run that code in HubSpot serverless function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moreover, I've used webpack for installing custom dependecies for the public app code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 12:33:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Import-packages-in-serverless-functions/m-p/660040#M54606</guid>
      <dc:creator>Megh_Patel</dc:creator>
      <dc:date>2022-07-05T12:33:57Z</dc:date>
    </item>
    <item>
      <title>Betreff: Import packages in serverless functions</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Import-packages-in-serverless-functions/m-p/662738#M54686</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/411249"&gt;@Megh_Patel&lt;/a&gt;&amp;nbsp;, I would recommend you pose your question as a new &lt;A href="https://community.hubspot.com/t5/HubSpot-Developers/ct-p/developers" target="_blank" rel="noopener"&gt;forum&lt;/A&gt; post or on our &lt;A href="https://developers.hubspot.com/slack" target="_blank" rel="noopener"&gt;developer Slack server&lt;/A&gt;. I would also recommend you provide some additional detail there on steps you have already tried, on the runtime and packages that comprise your app, on any errors you are getting, etc.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 11:23:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Import-packages-in-serverless-functions/m-p/662738#M54686</guid>
      <dc:creator>vbrech</dc:creator>
      <dc:date>2022-07-11T11:23:55Z</dc:date>
    </item>
    <item>
      <title>Betreff: Import packages in serverless functions</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Import-packages-in-serverless-functions/m-p/1070421#M78286</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/19686"&gt;@vbrech&lt;/a&gt;&amp;nbsp;this is really cool and thanks for sharing! I was wondering though, does `hs project upload` / `hs project dev` support webpack? To say, that if we use webpack that we would have to always manually copy data into the file we want to use the packaged code for?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:17:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Import-packages-in-serverless-functions/m-p/1070421#M78286</guid>
      <dc:creator>FOman</dc:creator>
      <dc:date>2024-11-15T23:17:07Z</dc:date>
    </item>
  </channel>
</rss>

