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:
- Created 3 years ago
- Reactions:10
- Comments:11 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you have:
**ERROR Error: vue-loader requires @vue/compiler-sfc to be present in the dependency tree.**
I resolved problem use**npm install**
Yes, downgrading the vue-loader to 15.9.2 in the package.json works. Thank’s!