I’m caught in a bit of a loop trying to deploy my app to Heroku. My import statements (e.g. import cors from ‘cors’) seem to prevent the app from launching in production, due to the “Cannot Load ES6 Modules in Common JS” error. Locally it runs just fine. However, when I attempt to resolve the above error by adding “type”:
Tag: heroku
How to set Heroku Port for NodeJS Express App?
so I’m trying to host my website on Heroku and set up everything to get my app up and running. Whenever I try to submit the form I get undefined errors. Undefined Errors Console Errors I’ve set it up to use the port like shown in the documenation: When starting the app locally with heroku local web I get Typerror:
Optional chaining operator gives SyntaxError when building my application to Heroku but works on my machine
I am using the optional chaining operator in my application, for instance: (checks if optionalField exists, then do something with it) The above code works perfectly on my machine but it gives me an error when I try to build this code on Heroku. Here is what the logs say: Does anyone know why is that? I suspect I should
API Key does not start with “SG.” SendGrid
I am trying to set up SendGrid add-on in my Heroku NodeJS app. I created the API Key and set it as an environment variable. The whole API key looks something like: SG.actualValue.bbb_cccccc The first setup I did I set the whole key as as my SENDGRID_API_KEY and I got this error: API key does not start with SG. So,
Heroku deployment of Node application returns node-waf: not found
I am attempting to deploy my Node.js application to Heroku by connecting Heroku to my Github repository and deploying the master branch. I have tried a number of different approaches to deploy my application but all of them return the same error. The exact build log can be found below: My package.json file can be found below: I have tried
How to upload multiple images to cloudinary and send urls to another database using javascript
This is my first time posting so please excuse my mistakes. I’m trying to upload multiple images to cloudinary, save the urls in an array and send them along with the rest of the form data to mongodb (one record with multiple images). I cant figure out how to call the mongodb function only after All the images are uploaded
Heroku custom DNS API route issue in Node.js
I have a custom domain set up in Heroku which works fine. I can access my site using both my app name and custom domain. I can access a route using my standard Heroku URL, but not using the custom domain. For example: Works: Does not work: Server config: Answer I know its too late but I am writing for
Uncaught Error: #90211 ExtensionName Error – Node.JS, Heroku, JavaScript App using FusionCharts
After updating my NPM packages, this application stopped working and started throwing the following errors: The Error #1 appears once, and Error #2 happens about 30x, until it crashes the app. Things I tried Lots of googling about these errors, very little information came up; searched SO and found nothing about these specific errors. I thought the errors might mean
cors-anywhere.herokuapp.com not working (503). What else can I try?
I am trying to send a get request to the Wikipedia API. I am sending the request form a angular frontend so i’m trying to use the Heroku CORS Anywhere endpoint to avoid CORS issues. For some reason, I’m still getting a 503 response saying no access-control-allow-origin header is present on the requested resource. Any idea why this would happen/what
Heroku: “No default language could be detected for this app” error thrown for node app
I am learning NodeJS and the course I’m following has several projects, arranged by sections. I have all the projects under one main folder, which is also a git repository. Each of these subfolders in the main folder is a node project by itself, complete with package.json and related dependencies in node_modules. The problem is when I tried to push