我买了一个使用react和react redux的主题。当我编译它的时候没有问题,但是如果我把它包含在symfony项目中,我会得到这个错误: ⇒ yarn encore dev --watch
yarn run v1.13.0
$ /Applications/MAMP/htdocs/hyper_sf/node_modules/.bin/encore dev --watch
Running webpack ...
webpack is watching the files…
ERROR Failed to compile with 2 errors
我已经尝试运行widgy的功能,但有许多图形错误,在管理模块,页面,表单,标注等,没有什么是正常显示,因为我可以与官方网站上的演示比较。
I have followed the entire quickstart.
COMPRESS_ENABLED = True
COMPRESS_PRECOMPILERS = (
# ...
('text/x-scss', 'django_pyscss.compressor.DjangoScssFilter'),
# ...
)
Thanks for any help.
No handler
我使用npm安装bootstrap,并使用scss导入它,但当我尝试编译时,它只显示无尽的警告
npm install bootstrap
app.scss文件
@import "~bootstrap/scss/bootstrap";
当我运行dev时
npm run dev
然后,我看到了无限循环,并显示以下警告
DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div($spacer, 4
通过执行以下步骤,我在我的站点中添加了方框:
webpack.mix.js配置
'public/css'); (资源/资产/js/app.js,'public/js') .sass(资源/资产/sass/app.scss)
npm install @fortawesome/fontawesome-free
In my package.json。
//字体“依赖关系”:{“@fortawesome/fontawesome”:"^5.13.0",
In my app.scss
// Fonts @import url(');@import u