django - “找不到或无法读取要导入的文件:~bootstrap/scss/functions。”,“格式化”:“错误:找不到或无法读取要导入的文件:~
问题描述
我正在尝试运行一个项目,我无法将 css 文件加载到登录网页。我在 npm 构建中发现了这个错误,同时我发现这个问题无法加载图像,尽管它们存在于我的文件夹中.
我对前端很陌生,如果我需要提供任何其他文件配置,请告诉我
“文件”:“/Users/mthippareddygari/Documents/GitHub/workflow/node_modules/bootstrap-material-design/scss/_variables.scss”,“行”:56,“列”:1,“消息”:“文件到导入未找到或不可读:~bootstrap/scss/functions。","格式化":"错误:要导入的文件未找到或不可读:~bootstrap/scss/functions。\n
网页配置
module : {
rules : [
{
test: /\.jsx/,
include: APP_DIR,
loader: 'babel-loader',
//Just in case
exclude: /node_modules/
},
//{include: /\.json$/, loaders: ["json-loader"]}
]
},
解决方案
你可能需要一些 css(或less/sass)特定的加载器来让 webpack 正确加载你的样式,例如
{
test: /\.css$/,
use: ['style-loader', 'css-loader']
},
推荐阅读
- html - a11y | Mac 画外音正在阅读 aria-label 和所有嵌套文本
- reporting-services - ssrs 中 Web 门户 url 和 Web 服务 url 之间的区别
- python - 启动时更改 webdrivers ip
- javascript - 如何在更改/键入/输入到 Javascript 函数时使用替换 jQuery 函数
- node.js - aws-amplify node.js 包是否支持相互 TLS API 连接?
- c# - 向文件名以数字结尾的文件添加缓存控制
- python - 如何更改我的 RL 模型的输出形状?
- asp.net - 为什么在 Asp.net Core MVC 的 bootstrap sticky 标头下渲染剃须刀页面
- google-cloud-platform - 坚持遵守域验证要求
- kiwi-tcms - kiwi-tcms:kiwi_db 重启循环