This repository has been archived by the owner on Nov 23, 2021. It is now read-only.
Can't resolve @vue/compile-sfc
in monorepo /yarn workspace
#6
Labels
I have installed this package in a yarn workspaces package. Both
vue-dts-gen
and@vue/compiler-sfc
are therefore not located in the package's localnode_modules
, they are hoisted in the project root'snode_modules
.In this scenario, this line fails to resolve the package:
vue-dts-gen/src/index.ts
Line 16 in 7649188
I edited the line to a simle
require('@vue/compiler-sfc')
and that worked.The text was updated successfully, but these errors were encountered: