<?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: Alexander Gorbunov</title>
    <description>The latest articles on DEV Community by Alexander Gorbunov (@alex_gorbunov).</description>
    <link>https://dev.to/alex_gorbunov</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%2F795917%2Feb385073-d5e1-4df1-83e7-23683e9bd18d.jpg</url>
      <title>DEV Community: Alexander Gorbunov</title>
      <link>https://dev.to/alex_gorbunov</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alex_gorbunov"/>
    <language>en</language>
    <item>
      <title>WeWi for Azure Trial Hackathon</title>
      <dc:creator>Alexander Gorbunov</dc:creator>
      <pubDate>Tue, 08 Mar 2022 19:48:45 +0000</pubDate>
      <link>https://dev.to/alex_gorbunov/wewi-for-azure-trial-hackathon-3li3</link>
      <guid>https://dev.to/alex_gorbunov/wewi-for-azure-trial-hackathon-3li3</guid>
      <description>&lt;h3&gt;
  
  
  Submission Category:
&lt;/h3&gt;

&lt;h1&gt;
  
  
  Computing Captains
&lt;/h1&gt;

&lt;h3&gt;
  
  
  Link to Code on GitHub
&lt;/h3&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--A9-wwsHG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/GorbunovAlex"&gt;
        GorbunovAlex
      &lt;/a&gt; / &lt;a href="https://github.com/GorbunovAlex/weather-widget-new"&gt;
        weather-widget-new
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Weather-widget with time
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;WeWi weather-widget&lt;/h1&gt;

&lt;/div&gt;
&lt;p&gt;Namaste to everybody!&lt;/p&gt;
&lt;p&gt;The idea of creating this app came to me after hours of useless searching for a weather-widget for a desktop on windows. So, I decided to create ideal weather-widget for me by myself :)&lt;/p&gt;
&lt;/div&gt;



&lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/GorbunovAlex/weather-widget-new"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


&lt;h3&gt;
  
  
  Additional Resources / Info
&lt;/h3&gt;

&lt;p&gt;Check the website I created for this app :) There you can try it!&lt;/p&gt;

&lt;p&gt;&lt;a href="http://20.101.42.222:3001/"&gt;http://20.101.42.222:3001/&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Vite + Vue 3 issue with ports on MacOS</title>
      <dc:creator>Alexander Gorbunov</dc:creator>
      <pubDate>Mon, 07 Feb 2022 15:47:40 +0000</pubDate>
      <link>https://dev.to/alex_gorbunov/vite-vue-3-issue-with-ports-on-macos-640</link>
      <guid>https://dev.to/alex_gorbunov/vite-vue-3-issue-with-ports-on-macos-640</guid>
      <description>&lt;p&gt;&lt;strong&gt;Namaste to everyone! 🙏&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Today I faced the issue with ports in Vite Vue project.&lt;/p&gt;

&lt;p&gt;The trouble occured after installing Vite PWA plugin. I tried to check it and start a command: &lt;/p&gt;

&lt;p&gt;&lt;code&gt;yarn build &amp;amp;&amp;amp; yarn preview&lt;/code&gt; &lt;/p&gt;

&lt;p&gt;Than switching to the browser I saw this: &lt;br&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%2Fi45qhsn747s02f39t987.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%2Fi45qhsn747s02f39t987.png" alt="Image description" width="800" height="442"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That was a bit confusing...&lt;/p&gt;

&lt;p&gt;I found the solution here: &lt;a href="https://github.com/vitejs/vite/discussions/6481"&gt;https://github.com/vitejs/vite/discussions/6481&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The issue is in port configuration: &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;you are experiencing this problem because the mac os version you are using took control over this port for a component even though these low port numbers shouldn't Ideally be used by a operating system&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;So, I started to use the following vite.config.ts option that solved my problems:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;preview: {
    port: 4000
  },
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can find an explanation, why port 4000 was chosen in the link above :)&lt;/p&gt;

&lt;p&gt;Thanks for reading! &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;UPDATE 18.02.22&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;As stated, this was fixed in Vite v2.8.0&lt;br&gt;
So, you can just update your Vite version&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>vue</category>
      <category>vite</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Vue 3 + Vite + TypeScript + Quasar issue</title>
      <dc:creator>Alexander Gorbunov</dc:creator>
      <pubDate>Sun, 23 Jan 2022 01:21:08 +0000</pubDate>
      <link>https://dev.to/alex_gorbunov/vue-3-vite-typescript-quasar-issue-1hlc</link>
      <guid>https://dev.to/alex_gorbunov/vue-3-vite-typescript-quasar-issue-1hlc</guid>
      <description>&lt;p&gt;&lt;strong&gt;Namaste to everyone!🙏&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I'd like to share with you an issue that I had to cope with today:)&lt;/p&gt;

&lt;p&gt;It's important to mention, that I used vite cli command to create vue project, then I started adding extensions to it.&lt;/p&gt;

&lt;p&gt;When I tried to add typescript to my exsisting project on Vue 3 + Vite + Quasar, I faced the problem:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Following the stipulations here (&lt;a href="https://quasar.dev/quasar-cli/supporting-ts"&gt;https://quasar.dev/quasar-cli/supporting-ts&lt;/a&gt;)&lt;br&gt;
I received an error from the compiler : &lt;code&gt;File "@quasar/app/tsconfig-preset" was not found.&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;So, I started to look for a solutions on github and stackoverflow, but found nothing there...&lt;/p&gt;

&lt;p&gt;After trying commands like&lt;code&gt;vue add quasar&lt;/code&gt;, I looked up in Quasar docs and found App Extensions section. But there I found instructions only for quasar cli:( &lt;/p&gt;

&lt;p&gt;But not got discouraged I decided to try a command: &lt;code&gt;yarn add @quasar/app&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;And &lt;strong&gt;&lt;em&gt;voila!&lt;/em&gt;&lt;/strong&gt; It works!:D&lt;/p&gt;

&lt;p&gt;Thank you for reading and I hope that this information will be useful:)&lt;/p&gt;

&lt;p&gt;P.S. I'm always open to discussion on any theme! Feel free to reach me!:) I'm on Discord: IngSm#0471&lt;/p&gt;

</description>
      <category>vue</category>
      <category>vite</category>
      <category>quasar</category>
      <category>webdev</category>
    </item>
    <item>
      <title>CSS Sticky Hover Solution</title>
      <dc:creator>Alexander Gorbunov</dc:creator>
      <pubDate>Sat, 22 Jan 2022 03:57:56 +0000</pubDate>
      <link>https://dev.to/alex_gorbunov/css-sticky-hover-solution-4n5i</link>
      <guid>https://dev.to/alex_gorbunov/css-sticky-hover-solution-4n5i</guid>
      <description>&lt;p&gt;&lt;strong&gt;Namaste to everybody!🙏&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I'd like to share with you a small tip that is important for me today. The issue is when you use mobile devices to run through your web page, you see that tapping on a button hover effect remains "sticky". It's rather annoying...&lt;/p&gt;

&lt;p&gt;The solution is here &lt;a href="https://css-tricks.com/solving-sticky-hover-states-with-media-hover-hover/"&gt;https://css-tricks.com/solving-sticky-hover-states-with-media-hover-hover/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And it really has helped!😼 Moreover, you can do it with only css without any js.&lt;/p&gt;

&lt;p&gt;Happiness to everybody!&lt;/p&gt;

&lt;p&gt;P.S. I'm always open to discussion on interesting programming themes and not only connected to cs)&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Vue 3 + Vite + Quasar issue</title>
      <dc:creator>Alexander Gorbunov</dc:creator>
      <pubDate>Tue, 18 Jan 2022 11:58:13 +0000</pubDate>
      <link>https://dev.to/alex_gorbunov/vue-3-vite-quasar-issue-2945</link>
      <guid>https://dev.to/alex_gorbunov/vue-3-vite-quasar-issue-2945</guid>
      <description>&lt;p&gt;&lt;strong&gt;Namaste to everybody!&lt;/strong&gt;;)&lt;/p&gt;

&lt;p&gt;I would like to share with you one issue that i had today with my set-up of Vue, Vite and Quasar. The issue is small and it won't get much of your time and I hope this article would be useful for somebody.&lt;/p&gt;

&lt;p&gt;I had troubles with default Quasar prebuild icons. Built a dev server I received an error: &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The request url "../vite-vue-quasar/node_modules/@quasar/extras/roboto-font/web-font/KFOmCnqEu92Fr1Mu4mxM.woff" is outside of Vite serving allow list.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The same error I had for icons and all Quasar extras.&lt;/p&gt;

&lt;p&gt;I had the following vite.config.js structure:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'

import { quasar, transformAssetUrls } from '@quasar/vite-plugin'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue({
      template: { transformAssetUrls }
    }),
    quasar({
      sassVariables: '@/assets/styles/quasar-variables.sass'
    })
  ],
  resolve: {
    alias: {
      '@/': `${path.resolve(__dirname, 'src')}/`
    }
  }
})
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The tip here is that from Vite v2.7 server strict mode is set to true by default and it restricts serving files outside of workspace root. &lt;/p&gt;

&lt;p&gt;Link to official docs: &lt;a href="https://vitejs.dev/config/#server-fs-strict"&gt;https://vitejs.dev/config/#server-fs-strict&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Below you can find an option to solve this problem with enabled strict mode, but I just turn the strict mode off.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;export default defineConfig({
  server: {
    fs: {
      // Allow serving files from one level up to the project root
      strict: false,
    }
  },
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Thank you for reading and I'm eager to hear if my decision is not right enough;)&lt;/p&gt;

</description>
      <category>vue</category>
      <category>vite</category>
    </item>
  </channel>
</rss>
