question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: vue-loader requires @vue/compiler-sfc to be present in the dependency tree

See original GitHub issue
 error  in ./src/views/pushV2/experiment/detail.vue

Module build failed (from /Users/mhy/node_modules/vue-loader/dist/index.js):
Error: vue-loader requires @vue/compiler-sfc to be present in the dependency tree.
    at Object.<anonymous> (/Users/mhy/node_modules/vue-loader/dist/index.js:10:11)
    at Module._compile (internal/modules/cjs/loader.js:678:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
    at Module.load (internal/modules/cjs/loader.js:589:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
    at Function.Module._load (internal/modules/cjs/loader.js:520:3)
    at Module.require (internal/modules/cjs/loader.js:626:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at loadLoader (/Users/mhy/work/ushareit-web-SGPush/node_modules/loader-runner/lib/loadLoader.js:13:17)
    at iteratePitchingLoaders (/Users/mhy/work/ushareit-web-SGPush/node_modules/loader-runner/lib/LoaderRunner.js:169:2)
    at iteratePitchingLoaders (/Users/mhy/work/ushareit-web-SGPush/node_modules/loader-runner/lib/LoaderRunner.js:165:10)
    at /Users/mhy/work/ushareit-web-SGPush/node_modules/loader-runner/lib/LoaderRunner.js:185:6
    at context.callback (/Users/mhy/work/ushareit-web-SGPush/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
    at readFn (/Users/mhy/work/ushareit-web-SGPush/node_modules/cache-loader/dist/index.js:137:7)
    at ReadFileContext.fs.readFile [as callback] (/Users/mhy/work/ushareit-web-SGPush/node_modules/cache-loader/dist/index.js:205:7)
    at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:320:13)

vue-cli-service: 3.5.3

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:10
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

10reactions
Omar-Qaleicommented, Aug 14, 2020

If you have: **ERROR Error: vue-loader requires @vue/compiler-sfc to be present in the dependency tree.** I resolved problem use **npm install**

9reactions
angeldominguezgcommented, Jun 23, 2020

Had same error. downgrading to v15.9.2 worked for me

Yes, downgrading the vue-loader to 15.9.2 in the package.json works. Thank’s!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error : vue-loader requires @vue/compiler-sfc to be present in ...
node/npm versions generates not quite correct dependency tree, and then trying to build unnecessary sources. We got this error in one of our ......
Read more >
Error : vue-loader requires @vue/compiler-sfc to be present in ...
Coding example for the question Error : vue-loader requires @vue/compiler-sfc to be present in the dependency tree-Vue.js.
Read more >
@vue/compiler-sfc - npm
@vue/compiler-sfc. Lower level utilities for compiling Vue Single File Components. Note: as of 3.2.13+, this package is included as a dependency ...
Read more >
azu on Twitter: "見てる: "Error: vue-loader requires @vue ...
Error : vue-loader requires @vue/compiler-sfc to be present in the dependency tree · Issue #1672 ·... error in ./src/views/pushV2/experiment/detail.
Read more >
Tooling - Vue.js
Vite is a lightweight and fast build tool with first-class Vue SFC support. ... In such cases, Vue needs to ship the template...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found