• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

The Coding Couple

Pair programming is a lifetime commitment.

  • Home
  • Categories
    • Arduino
    • JavaScript
    • Python
    • Raspberry Pi
  • About Us
    • Privacy Policy
  • Contact

Vue.JS Error: This relative module was not found

October 20, 2019 by Ashley

I was making an update to a small Vue.JS side project when I encountered a build error:

This relative module was not found error message

ERROR Failed to compile with 1 errors 6:00:20 AM

This relative module was not found:

* ./components/ProficiencyBar.vue in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/SkillSection.vue?vue&type=script&lang=js&

My most recent change was a refactor that involved the creation of a new component: ProficiencyBar. At first I thought, Oh I must have typoed the component name. But once I verified all my spelling was correct, I was stumped. A few Google searches later I came across a GitHub issue describing the same issue as mine. The solution? Delete the /node_modules/.cache folder.

node_modules/.cache folder

Unfortunately, deleting the folder didn’t solve the error, but it led me to the another potential solution to my problem. I looked at Vue component linked in the GitHub issue and noticed a section missing from mine: the components. In my refactor I forgot to add the ProficiencyBar to the SkillSection components.

    import ProficiencyBar from './components/ProficiencyBar.vue';  
  
    export default {
        name: 'SkillSection',
        props: ['skills'],
        components: {
            ProficiencyBar
        },

However, to my shock and disappointment, that glaring omission still didn’t resolve my original error.

Another Google search later, I found another GitHub issue with the same error. The solution there: changing the import style. In their case it went from using the @ symbol to dot notation for relative path. Since I was already using the dot notation, I decided to give the @ symbol a try and it worked!

import ProficiencyBar from '@/components/ProficiencyBar.vue';  

Now the question is why? Unfortunately, I’ll have to answer that another day.

Let’s be friends!

  • Instagram: @thecodingcouple
  • Twitter: @thecodingcouple
  • GitHub: @thecodingcouple

Related Posts

  • Error: [🍍]: “getActivePinia()” was called but there was no active PiniaError: [🍍]: “getActivePinia()” was called but there was no active Pinia
  • Uncaught TypeError: util.inherits is not a functionUncaught TypeError: util.inherits is not a function
  • 5 Ways to Improve Your Debugging Skills5 Ways to Improve Your Debugging Skills
  • Surviving the Hackathon:  Angular Attack 2016Surviving the Hackathon: Angular Attack 2016
  • Tinkering Around with Adafruit’s PyBadge LCTinkering Around with Adafruit’s PyBadge LC
  • Fractions in Python | Today I LearnedFractions in Python | Today I Learned

Filed Under: Debugging, JavaScript, Programming Languages Tagged With: debugging, vuejs

Previous Post: « DevSpace 2019 Recap
Next Post: .mjs extension (A JavaScript module file) | Today I Learned »

Primary Sidebar

Social Media

  • GitHub
  • Instagram
  • Twitter
  • YouTube

Recent Posts

  • Pokémon Color Picker | A web app built with HTML/CSS + JavaScript
  • Pokéball Single DIV CSS Drawing | Tutorial
  • Error: [🍍]: “getActivePinia()” was called but there was no active Pinia
  • Trijam #261 Game Jam Diary: One Wrong Move
  • Using WSL on Corporate VPN

Recent Comments

  • Lizzy on Creation Crate Month 2: An Arduino Powered Memory Game
  • Ashley Grenon on Creation Crate Month 2: An Arduino Powered Memory Game
  • Lizzy on Creation Crate Month 2: An Arduino Powered Memory Game
  • kelly on Creation Crate Month 2: An Arduino Powered Memory Game
  • Ashley on Creation Crate Month 3: An Arduino Powered Distance Detector

Follow us on Instagram!

This error message is only visible to WordPress admins

Error: No feed found.

Please go to the Instagram Feed settings page to create a feed.

Categories

  • Arduino
  • Conferences
  • Debugging
  • Game Jams
  • HTML and CSS
  • JavaScript
  • Programming Languages
  • Python
  • Raspberry Pi
  • Today I Learned

Archives

  • May 2024
  • April 2024
  • March 2024
  • May 2022
  • December 2021
  • May 2021
  • March 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • June 2019
  • April 2019
  • September 2017
  • April 2017
  • August 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • April 2015
  • January 2015

Tags

adafruit arduino brackets c# code smell codestock coding standards conventions creation crate debugging developer devspace electronics es6 es2015 game development game jam gotcha hackathon hoisting html html5 javascript led naming conventions nintendo phaser pluralsight pokemon programmer python raspberry pi retro retropie scope self improvement single div single div drawing subscription box TIL today I learned troubleshooting vue vuejs windbg

Footer

About Us

We are the Coding Couple.  Two people who met in college and decided they wanted to pair program for the rest of their ...

Read More »

Most Recent Posts

Pokémon Color Picker | A web app built with HTML/CSS + JavaScript

Pokéball Single DIV CSS Drawing | Tutorial

Error: [🍍]: “getActivePinia()” was called but there was no active Pinia

Trijam #261 Game Jam Diary: One Wrong Move

Social Media

  • GitHub
  • Instagram
  • Twitter
  • YouTube

Copyright Notice

© The Coding Couple, 2015 – 2023. Excerpts and links may be used, provided that full and clear credit is given to The Coding Couple with appropriate and specific direction to the original content.

Copyright © 2025 · Foodie Pro Theme by Shay Bocks · Built on the Genesis Framework · Powered by WordPress