<?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: Dale Ellis</title>
    <description>The latest articles on DEV Community by Dale Ellis (@daledevuk).</description>
    <link>https://dev.to/daledevuk</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%2F193835%2F98bcfa51-e12c-4442-ab95-afdb3d7e6561.jpeg</url>
      <title>DEV Community: Dale Ellis</title>
      <link>https://dev.to/daledevuk</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/daledevuk"/>
    <language>en</language>
    <item>
      <title>Issue building Vue app</title>
      <dc:creator>Dale Ellis</dc:creator>
      <pubDate>Thu, 11 Jul 2019 15:21:44 +0000</pubDate>
      <link>https://dev.to/daledevuk/issue-building-vue-app-4m3l</link>
      <guid>https://dev.to/daledevuk/issue-building-vue-app-4m3l</guid>
      <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I have an application that I’ve been working on and have gotten to the point I want to deploy it somewhere rather than running it locally.&lt;/p&gt;

&lt;p&gt;Locally, this runs fine &lt;code&gt;vue-cli-service serve&lt;/code&gt; however, when I run &lt;code&gt;vue-cli-service&lt;/code&gt; build I get build errors saying that it can’t find modules, basically every import to my own modules fails, for example…&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;script lang="ts"&amp;gt;
    import {Component, Vue} from 'vue-property-decorator';
    import MarketOpeningTimeBadge from "@/components/MarketOpeningTimeBadge";

    @Component({
        components: {MarketOpeningTimeBadge}
    })
    export default class MarketOpeningTimes extends Vue {

    }
&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Example Error…&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt; error  in C:/projects/Research and Development/daleellis/sentiment-investment/client/src/components/MarketOpeningTimes.vue

ERROR in C:/projects/Research and Development/daleellis/sentiment-investment/client/src/components/MarketOpeningTimes.vue
12:36 Cannot find module '@/components/MarketOpeningTimeBadge'.
    10 | &amp;lt;script lang="ts"&amp;gt;
    11 |     import {Component, Vue} from 'vue-property-decorator';
  &amp;gt; 12 |     import MarketOpeningTimeBadge from "@/components/MarketOpeningTimeBadge";
       |                                    ^
    13 | 
    14 |     @Component({
    15 |         components: {MarketOpeningTimeBadge}
There are no issues when I run serve locally in regards to the application working, but I notice that also displays the errors in the console.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;What do I need to do to resolve the build?&lt;/p&gt;

&lt;p&gt;Thanks&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"vue": "^2.6.10",
"vue-class-component": "^7.0.2",
"vue-property-decorator": "^8.1.0",
"vue-router": "^3.0.3",
"vue-socket.io": "^3.0.7",
"vuetify": "^1.5.5",
"vuex": "^3.0.1",
"vuex-class": "^0.3.2"
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



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