Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

380
Views
How to fix npm run serve command bringing Relative Module was not found error

I have a blockchain project whose frontend is implemented in Vuejs. I have installed all the dependencies with "npm install" command. I am trying to set up the development server to serve the front end by running the "npm run serve" command in the /appvue root folder but get a compilation error as follows:

This relative module was not found:

  • ../../build/contracts/SupplyChain.json 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/App.vue?vue&type=script&lang=js&

I am new to VueJs but it looks like the Supplychain.json file cannot be found yet its clearly in the project structure attached.

https://github.com/kafukoM/project_3_Dapp_Supply_Chain

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

you need to replace line with import in your App.vue file line № 209 from this

import supplyChainArtifact from '../../../build/contracts/SupplyChain.json'

to

import supplyChainArtifact from '../../app/src/SupplyChain.json'
about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!