Unable to find asset "~bootstrap/scss/bootstrap"

#31 · closed · 7 comments

View on GitHub ↗

kpeu3u

Hey, I am trying to add arkounay/ux-media to my project, it is very small and simple, i use only stimulus. after: php bin/console assets:install Installing assets as hard copies. --- -------------------------- ---------------- Bundle Method / Error --- -------------------------- ---------------- ✔ ArtgrisFileManagerBundle copy --- -------------------------- ---------------- ! [NOTE] Some assets were installed via copy. If you make changes to these assets you have to run this command again. [OK] All assets were successfully installed. but after I run: php bin/console asset-map:compile ! [NOTE] Executing Sass (pass -v to see more details). Warming the icon cache... Icon cache warmed. // Compiling and writing asset files to public In CssAssetUrlCompiler.php line 111: Unable to find asset "~bootstrap/scss/bootstrap" referenced in "/vendor/arkounay/ux-media/assets/src/bootstrap_modal.scss". The file "/vendor/arkounay/ux-media/assets/src/~bootstrap/scss/bootstrap" does not exist. I get this error. I am using php 8.2 and Symfony 7.4.

Comments

Arkounay

Hello, it's strange because it looks like it's trying to compile a scss file that shouldn't be compiled. Not sure what's causing it as I couldn't reproduce on a fresh symfony 7.4 install, both with AssetManager and Webpack

kpeu3u

hi, I am adding backend to a website, that need simple blog with gallery images, I am using Symfony demo https://github.com/symfony/demo

xDeSwa

There does not seem to be a need for the bootstrap_modal.scss file. I think it should be completely removed from the project. i removed and tried with 6.4. works fine.

Arkounay

I tried with symfony demo and php 8.2 and it seems to be working even with their style: https://github.com/user-attachments/assets/227be609-2a51-40d0-89c4-88485ced24a5 Yeah I gueess removing the bootstrap_modal.scss and providing an alternative through the readme file would be a good alternative, it's just a bit annoying I can't reproduce

kpeu3u

Hi, my workaround works, I just forked repo and removed bootstrap_modal.scss at all, and it works fine.

kpeu3u

Hello, I have created pull request, but you no need to add it to a project. there is little fix about extra parameter that is set in custom service, but is not passed to crop_controller.js

Arkounay

Hey, thank you @kpeu3u :+1: works for me