在组件样式内导入lib的CSS是在安装时未找到依赖性的
<style lang="scss">
@import 'tippy.js/dist/tippy.css';
//@import "@/assets/vars.scss";
.chart-tooltip-slim {
color: #fff;
padding: 10px 15px;
}
.chart-tooltip {
min-width: 260px;
color: #fff;
padding: 15px 30px;
我在Vuejs 2应用程序中有以下代码。问题是安装了LIB,当我仅导入JS部分时,它正在工作。但是,当我导入样式时,它会引发有关未找到依赖关系的加载程序错误。怎么了,我该如何解决?
<style lang="scss">
@import 'tippy.js/dist/tippy.css';
//@import "@/assets/vars.scss";
.chart-tooltip-slim {
color: #fff;
padding: 10px 15px;
}
.chart-tooltip {
min-width: 260px;
color: #fff;
padding: 15px 30px;
I have the following code inside the vuejs 2 app. The thing is that the lib is installed and it's working when I import only the js part. However when I import the styles it throws a loader error about dependency not found. What is wrong and how can I fix it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
应该工作。
您也可以使用
...在JavaScript中(通常您会将所有供应商样式导入在
main.js
中)。should work.
You can also use
...in JavaScript (typically you'd place all vendor style imports in
main.js
).