<?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: Thiago</title>
    <description>The latest articles on DEV Community by Thiago (@thiagoanjos).</description>
    <link>https://dev.to/thiagoanjos</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%2F498278%2F40584bbb-1ee9-43d1-a455-228b13c1a9f5.jpeg</url>
      <title>DEV Community: Thiago</title>
      <link>https://dev.to/thiagoanjos</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/thiagoanjos"/>
    <language>en</language>
    <item>
      <title>Conventional Commits</title>
      <dc:creator>Thiago</dc:creator>
      <pubDate>Sat, 18 May 2024 20:58:24 +0000</pubDate>
      <link>https://dev.to/thiagoanjos/conventional-commits-346l</link>
      <guid>https://dev.to/thiagoanjos/conventional-commits-346l</guid>
      <description>&lt;p&gt;Sometimes it's hard to always write simple and clean commits, but we have a simple npm package called git-cz or commitizen wich help us to write better commits: &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://www.npmjs.com/package/git-cz"&gt;https://www.npmjs.com/package/git-cz&lt;/a&gt;&lt;/strong&gt; &lt;br&gt;
&lt;strong&gt;&lt;a href="https://www.npmjs.com/package/commitizen"&gt;https://www.npmjs.com/package/commitizen&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Follow the instructions at the page above and with a simple command as: &lt;strong&gt;git cz&lt;/strong&gt; at your terminal you'll have the following options:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxu77taruv57fo9m57gej.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxu77taruv57fo9m57gej.png" alt="Image description" width="643" height="177"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I choosed the feat option:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8jk2kekbb4bj0qzcut39.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8jk2kekbb4bj0qzcut39.png" alt="Image description" width="709" height="81"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, I add more information&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fom3whm60bvad5n51n3vx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fom3whm60bvad5n51n3vx.png" alt="Image description" width="738" height="116"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then it asks if your code has some BREAKING CHANGES or close any issue&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq7wojx9qkqxe2wvzun8d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq7wojx9qkqxe2wvzun8d.png" alt="Image description" width="710" height="212"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And this is the result:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff7hht876mzqckkflgyzj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff7hht876mzqckkflgyzj.png" alt="Image description" width="800" height="184"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Obviously you can follow the instructions here of how to write better commits &lt;a href="https://www.conventionalcommits.org/en/v1.0.0/"&gt;https://www.conventionalcommits.org/en/v1.0.0/&lt;/a&gt; but it is very useful to have a little automate help&lt;/p&gt;

</description>
      <category>conventionalcommits</category>
      <category>git</category>
      <category>commit</category>
      <category>development</category>
    </item>
    <item>
      <title>handlebars: TypeError: exphbs is not a function</title>
      <dc:creator>Thiago</dc:creator>
      <pubDate>Wed, 13 Mar 2024 01:20:39 +0000</pubDate>
      <link>https://dev.to/thiagoanjos/handlebars-typeerror-exphbs-is-not-a-function-4j0n</link>
      <guid>https://dev.to/thiagoanjos/handlebars-typeerror-exphbs-is-not-a-function-4j0n</guid>
      <description>&lt;p&gt;I was trying to use handlebars as my template engine on nodejs doing this:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;const exphbs = require("express-handlebars");&lt;br&gt;
app.engine("hbs", exphbs());&lt;br&gt;
app.set("view engine", "hbs");&lt;br&gt;
app.set("views", "views");&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;but this gerate an error:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv1ar3sozeyufphvlj6qd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv1ar3sozeyufphvlj6qd.png" alt="error" width="570" height="73"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To fix this, I had to change the way I import&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;const express = require('express');&lt;br&gt;
const { engine } = require('express-handlebars');&lt;br&gt;
const app = express();&lt;br&gt;
app.engine('handlebars', engine());&lt;br&gt;
app.set('view engine', 'handlebars');&lt;br&gt;
app.set("views", "./views");&lt;/strong&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>error to install next.js</title>
      <dc:creator>Thiago</dc:creator>
      <pubDate>Wed, 13 Mar 2024 01:15:51 +0000</pubDate>
      <link>https://dev.to/thiagoanjos/error-to-install-nextjs-34n</link>
      <guid>https://dev.to/thiagoanjos/error-to-install-nextjs-34n</guid>
      <description>&lt;p&gt;I was trying to install next.js using their tutorial and got this error message: "npm ERR! enoent ENOENT: no such file or directory, lstat &lt;strong&gt;C:\Users\mariobros\AppData\Roaming\npm&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This problem can be fixed by creating an empty folder called "npm" at the directory C:\Users\mariobros\AppData\Roaming\&lt;/p&gt;

</description>
    </item>
    <item>
      <title>npm ERR! enoent ENOENT: no such file or directory, lstat</title>
      <dc:creator>Thiago</dc:creator>
      <pubDate>Sat, 27 Jan 2024 20:40:10 +0000</pubDate>
      <link>https://dev.to/thiagoanjos/npm-err-enoent-enoent-no-such-file-or-directory-lstat-1l7</link>
      <guid>https://dev.to/thiagoanjos/npm-err-enoent-enoent-no-such-file-or-directory-lstat-1l7</guid>
      <description>&lt;p&gt;I was trying to install next.js using their tutorial and got this error message: "npm ERR! enoent ENOENT: no such file or directory, lstat &lt;strong&gt;C:\Users\mario\AppData\Roaming\npm&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This problem can be fixed by creating an empty folder called "npm" at the directory C:\Users\mario\AppData\Roaming\&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to manage git url repository?</title>
      <dc:creator>Thiago</dc:creator>
      <pubDate>Thu, 02 Nov 2023 21:04:53 +0000</pubDate>
      <link>https://dev.to/thiagoanjos/how-to-manage-git-url-repository-21f0</link>
      <guid>https://dev.to/thiagoanjos/how-to-manage-git-url-repository-21f0</guid>
      <description>&lt;p&gt;This documentations help me a lot: &lt;a href="https://docs.github.com/en/get-started/getting-started-with-git/managing-remote-repositories"&gt;https://docs.github.com/en/get-started/getting-started-with-git/managing-remote-repositories&lt;/a&gt;&lt;/p&gt;

</description>
      <category>git</category>
    </item>
    <item>
      <title>Como somar valores de um objeto que pode ter algumas propriedades indefinidas?</title>
      <dc:creator>Thiago</dc:creator>
      <pubDate>Wed, 28 Jun 2023 17:22:28 +0000</pubDate>
      <link>https://dev.to/thiagoanjos/como-somar-valores-de-um-objeto-que-pode-ter-algumas-propriedades-indefinidas-3266</link>
      <guid>https://dev.to/thiagoanjos/como-somar-valores-de-um-objeto-que-pode-ter-algumas-propriedades-indefinidas-3266</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fduieq6qigj1oc7exngig.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fduieq6qigj1oc7exngig.png" alt="Image description" width="630" height="398"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;const products = [&lt;br&gt;
  {name: 'Laptop', price: 1000},&lt;br&gt;
  {name: 'Mobile', price: 500},&lt;br&gt;
  {name: 'TV', price: 2000},&lt;br&gt;
  {name: 'Camera', price: undefined}&lt;br&gt;
]&lt;/p&gt;

&lt;p&gt;function sumPriceProducts() {&lt;br&gt;
  return products.reduce((acc, product) =&amp;gt; {&lt;br&gt;
      return acc + (product.price || 0);&lt;br&gt;
  }, 0);&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;let soma = sumPriceProducts()&lt;br&gt;
console.log(soma);&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to use github copilot?</title>
      <dc:creator>Thiago</dc:creator>
      <pubDate>Wed, 28 Jun 2023 13:45:58 +0000</pubDate>
      <link>https://dev.to/thiagoanjos/how-to-use-github-copilot-173g</link>
      <guid>https://dev.to/thiagoanjos/how-to-use-github-copilot-173g</guid>
      <description>&lt;p&gt;I started using github copilot in my work. I use a business license. However, if you want to use this 'AI pair programmer' without having to pay, you need to have any of these requirements listed on the github website:&lt;br&gt;
&lt;a href="https://github.com/pricing#i-work-on-open-source-projects-can-i-get-access-to-github-copilot-for-free"&gt;https://github.com/pricing#i-work-on-open-source-projects-can-i-get-access-to-github-copilot-for-free&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;You can install copilot github extension in any IDE, in my case I installed it in Vscode.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fny0hsupwxoimd4r7d0jx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fny0hsupwxoimd4r7d0jx.png" alt="Image description" width="480" height="239"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hit Tab to accept it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;There are some shortcuts available:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;control + enter = return 10 code suggestions in a new window and there you choose the one that best pleases you.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgioxh3cc3jyjbrji04h6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgioxh3cc3jyjbrji04h6.png" alt="Image description" width="800" height="491"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbere4aybzr3hoylfvzc2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbere4aybzr3hoylfvzc2.png" alt="Image description" width="660" height="132"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn4ywsu3civhy503gs26t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn4ywsu3civhy503gs26t.png" alt="Image description" width="588" height="217"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fks80wvjg4g65tyealz5y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fks80wvjg4g65tyealz5y.png" alt="Image description" width="595" height="229"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faven5ex606vjwl2bizff.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faven5ex606vjwl2bizff.png" alt="Image description" width="678" height="504"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I wrote this topic as a way for myself to be able to learn the basics of how to work with github copilot, there are certainly many more complete and complex options for using it.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Error: require() of ES modules is not supported when importing node-fetch</title>
      <dc:creator>Thiago</dc:creator>
      <pubDate>Wed, 26 Apr 2023 21:29:33 +0000</pubDate>
      <link>https://dev.to/thiagoanjos/error-require-of-es-modules-is-not-supported-when-importing-node-fetch-mg7</link>
      <guid>https://dev.to/thiagoanjos/error-require-of-es-modules-is-not-supported-when-importing-node-fetch-mg7</guid>
      <description>&lt;p&gt;Você tem duas alternativas para resolver esse problema:&lt;br&gt;
You've two options to fix it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;No seu terminal instale uma versão antiga do node-fetch: npm install node-fetch@2&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;At yout terminal, install a old version of node-fetch: npm install node-fetch@2&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;No seu package.json, configure o seu projeto para suportar módulos assim: "type": "module"&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;At your package.json file, set the project type to support module.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
    </item>
    <item>
      <title>ERROR Error: Uncaught (in promise): Error: Expected validator to return Promise or Observable. - angular</title>
      <dc:creator>Thiago</dc:creator>
      <pubDate>Sun, 22 Jan 2023 15:32:56 +0000</pubDate>
      <link>https://dev.to/thiagoanjos/error-error-uncaught-in-promise-error-expected-validator-to-return-promise-or-observable-angular-2hj</link>
      <guid>https://dev.to/thiagoanjos/error-error-uncaught-in-promise-error-expected-validator-to-return-promise-or-observable-angular-2hj</guid>
      <description>&lt;p&gt;I wrote my custom validator to check if filename is right:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp47rvp3ylt6y7elp8tps.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp47rvp3ylt6y7elp8tps.png" alt="Image description" width="800" height="355"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And add it in this way on fb.group&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fypm8qp68vtw3gte81t2c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fypm8qp68vtw3gte81t2c.png" alt="Image description" width="547" height="33"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And this error came up:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9r6pmq9xyikqrzxfzuxq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9r6pmq9xyikqrzxfzuxq.png" alt="Image description" width="800" height="294"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;and fix it adding is this way:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F66cbzgal7otgkda4ryfw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F66cbzgal7otgkda4ryfw.png" alt="Image description" width="552" height="28"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to fix external domain problem not resolving dns name on godaddy?</title>
      <dc:creator>Thiago</dc:creator>
      <pubDate>Tue, 22 Mar 2022 14:43:28 +0000</pubDate>
      <link>https://dev.to/thiagoanjos/how-to-fix-external-domain-problem-not-resolving-dns-name-on-godaddy-37g6</link>
      <guid>https://dev.to/thiagoanjos/how-to-fix-external-domain-problem-not-resolving-dns-name-on-godaddy-37g6</guid>
      <description>&lt;p&gt;Today I faced a problem with one domain client. My domain is registered on &lt;a href="https://registro.br"&gt;https://registro.br&lt;/a&gt; and my website hosting is on godaddy. But the domain address was not being resolved properly. So I discovered that.&lt;/p&gt;

&lt;p&gt;I need to enter on godaddy: domains setttings and add a domain type A to my hosting ip address on godaddy. This way works. &lt;/p&gt;

&lt;p&gt;Obviously my domain on &lt;a href="https://registro.br/"&gt;https://registro.br/&lt;/a&gt; I change the dns to godaddy too. &lt;/p&gt;

</description>
      <category>godaddydns</category>
      <category>dns</category>
    </item>
    <item>
      <title>SPA application error 404 on refresh</title>
      <dc:creator>Thiago</dc:creator>
      <pubDate>Tue, 22 Mar 2022 14:14:54 +0000</pubDate>
      <link>https://dev.to/thiagoanjos/spa-application-error-404-on-refresh-4j9d</link>
      <guid>https://dev.to/thiagoanjos/spa-application-error-404-on-refresh-4j9d</guid>
      <description>&lt;p&gt;If you deploy your SPA application on a server as Godaddy or other service and try to access a url diferent from root folder as /about and has an error 404 you can try to solve your problem following this documentation from react:&lt;br&gt;
&lt;a href="https://create-react-app.dev/docs/deployment/"&gt;https://create-react-app.dev/docs/deployment/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But the fast answer for your question is to create a .htaccess file on your server and past the following code:&lt;/p&gt;

&lt;p&gt;Options -MultiViews&lt;br&gt;
RewriteEngine On&lt;br&gt;
RewriteCond %{REQUEST_FILENAME} !-f&lt;br&gt;
RewriteRule ^ index.html [QSA,L]&lt;/p&gt;

</description>
      <category>htaccess</category>
      <category>redirect</category>
    </item>
    <item>
      <title>Consider defining a bean named ‘entityManagerFactory‘ in your configuration.</title>
      <dc:creator>Thiago</dc:creator>
      <pubDate>Tue, 07 Sep 2021 22:42:25 +0000</pubDate>
      <link>https://dev.to/thiagoanjos/consider-defining-a-bean-named-entitymanagerfactory-in-your-configuration-20kj</link>
      <guid>https://dev.to/thiagoanjos/consider-defining-a-bean-named-entitymanagerfactory-in-your-configuration-20kj</guid>
      <description>&lt;p&gt;At a loss, I found that I had commented on the main startup class:&lt;/p&gt;

&lt;p&gt;@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
