gpt4 book ai didi

css - Bulma 无法在 Laravel 5.6 上工作

转载 作者:太空宇宙 更新时间:2023-11-04 07:30:12 25 4
gpt4 key购买 nike

我试图通过 npm 安装 Bulma 包。它安装成功并带有一些警告,但是当我运行“npm run dev”时,它显示如下错误 -

> ERROR in ./resources/assets/sass/app.scss Module build failed:
> ModuleBuildError: Module build failed: undefined
> ^
> Index out of bounds for `nth($list, $n)`
> in C:\Users\Sabbir\test\node_modules\bulma\sass\elements\button.sass
> (line 105, column 20)
> at runLoaders (C:\Users\Sabbir\test\node_modules\webpack\lib\NormalModule.js:195:19)
> at C:\Users\Sabbir\test\node_modules\loader-runner\lib\LoaderRunner.js:364:11
> at C:\Users\Sabbir\test\node_modules\loader-runner\lib\LoaderRunner.js:230:18
> at context.callback (C:\Users\Sabbir\test\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
> at Object.asyncSassJobQueue.push [as callback] (C:\Users\Sabbir\test\node_modules\sass-loader\lib\loader.js:55:13)
> at Object.done [as callback] (C:\Users\Sabbir\test\node_modules\neo-async\async.js:7921:18)
> at options.error (C:\Users\Sabbir\test\node_modules\node-sass\lib\index.js:294:32) @
> ./resources/assets/sass/app.scss @ multi ./resources/assets/js/app.js
> ./resources/assets/sass/app.scss

最佳答案

尝试:

@import '~bulma/bulma.sass';

关于css - Bulma 无法在 Laravel 5.6 上工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49485008/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com