<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mānny</title>
    <description>The latest articles on DEV Community by Mānny (@mnydev).</description>
    <link>https://dev.to/mnydev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F848151%2F37631440-0809-477f-ba11-7730a199f950.jpg</url>
      <title>DEV Community: Mānny</title>
      <link>https://dev.to/mnydev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mnydev"/>
    <language>en</language>
    <item>
      <title>Heroku Error H10</title>
      <dc:creator>Mānny</dc:creator>
      <pubDate>Wed, 18 May 2022 01:34:39 +0000</pubDate>
      <link>https://dev.to/mnydev/heroku-error-h10-3094</link>
      <guid>https://dev.to/mnydev/heroku-error-h10-3094</guid>
      <description>&lt;p&gt;I want to push and commit my MERN stack application. The deployment in the terminal goes well but when I launch the app via the &lt;a href="https://qode-so.herokuapp.com/"&gt;Heroku URL&lt;/a&gt; the app does not load properly. Google Developer Tools console does not help, so i used&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;heroku logs --tail
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and found two errors, shown below!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;2022-05-18T01:21:18.212028+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=qode-so.herokuapp.com request_id=ad010e60-74da-411c-b25f-794a9cc31df7 fwd="98.52.109.235" dyno= connect= service= status=503 bytes= protocol=https
2022-05-18T01:21:20.923308+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=qode-so.herokuapp.com request_id=2e87a149-2982-4582-8e42-6fdf136cef7c fwd="98.52.109.235" dyno= connect= service= status=503 bytes= protocol=https
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I tried adding a Heroku Procfile but it just threw another with a different error code so i just removed it to prevent the struggle of figuring out another error, I checked my server.js and everything looks fine. Here is the &lt;code&gt;server.js&lt;/code&gt; code.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const express = require('express');
const connectDB = require('./config/db');
const path = require('path');

const app = express();
app.use(express.json());
connectDB();

// route
app.use('/api/users', require('./routes/api/users'));
app.use('/api/auth', require('./routes/api/auth'));
app.use('/api/profile', require('./routes/api/profile'));
app.use('/api/posts', require('./routes/api/posts'));
app.use('/api/tags', require('./routes/api/tags'));
app.use('/api/notify', require('./routes/api/notifications'));

if (process.env.NODE_ENV === 'production') {
  app.use(express.static('client/build'));
  app.get('*', (req, res) =&amp;gt; {
    res.sendFile(path.resolve(__dirname, 'client', 'build', 'index.html'));
  });
}

const PORT = process.env.PORT || 5000;

app.listen(PORT, () =&amp;gt; console.log(`Server started on port ${PORT}`));

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Has anyone encountered this before and could help? I tried to use the solutions already listed at &lt;a href="https://dev.to/lawrence_eagles/causes-of-heroku-h10-app-crashed-error-and-how-to-solve-them-3jnl"&gt;&lt;strong&gt;H10-App Crashed Error And How To Solve Them&lt;/strong&gt;&lt;/a&gt;. &lt;/p&gt;

</description>
      <category>help</category>
      <category>node</category>
      <category>react</category>
    </item>
  </channel>
</rss>
