Тёмный

How to Compile Assets in Symfony 6 | Compile CSS & JS | Symfony 6 for Beginners | Learn Symfony 6 

Code With Dary
Подписаться 62 тыс.
Просмотров 12 тыс.
50% 1

Опубликовано:

 

22 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 25   
@matorres74
@matorres74 6 месяцев назад
So far this course is excellent. I am using to get back into symfony as the last version I used was around 3 I think. I haven't had a problem until this video (front end stuff is always a hassle). When running npm run dev I get an error "./assets/bootstrap.js" contains a reference to the file "@symfony/stimulus-bundle". This file can not be found, please check it for typos or update it if the file got moved. It is 2024 right now I see this video came out in 2022??? So I am on version 6.4 atm. Seems symfony has made some changes with the --webapp flag that nullifies using encore? Anyway, the solution I found was suggested to recreate the application without the --webapp flag, basically a bare bones installation. I am sure this will create more headaches as this goes along. Otherwise, pretty good tutorial.
@ilyasbakirov
@ilyasbakirov 2 года назад
Great video! Darynazar you didn't mention running npm install before running npm run dev. Without with it will give error about encore dev. But I see in video that you have already package-lock.json so you run it before recording video :)
@codewithdary
@codewithdary 2 года назад
Whoops, I think that I cut that part out by accident when I was trying to shorten the composer install section, hehe thank you.
@ilyasbakirov
@ilyasbakirov 2 года назад
@@codewithdary Not at all! Keep up the good work!
@codewithdary
@codewithdary 2 года назад
@Ilyas Bakirov will do my friend!
@MexicanintheKitchen
@MexicanintheKitchen 2 года назад
Came looking for this, thanks!
@najimelguennouni873
@najimelguennouni873 2 года назад
thank you Dary
@codewithdary
@codewithdary 2 года назад
No worries Najim.
@drazen.antunovic
@drazen.antunovic 10 месяцев назад
is there a way to define functions also and call them inside twig
@codewithdary
@codewithdary 9 месяцев назад
Your function will most likely send back some kind of value which you can use
@dominquehopp7360
@dominquehopp7360 2 года назад
"./" doesn't go back one directory. It's a pointer to the current directory (/assets/). If you like to go back or up one directory, you have to write "../" (which would be wrong here).
@Sasfatu
@Sasfatu Год назад
Hey, great video. However I've discovered, that I do not get the asset/controller folder after running composer require symfony/webpack-encore-bundle. Nor the bootstrap.js file. Just the app.js and asset/styles/app.css. What step is missing? Cheers
@danieluxury
@danieluxury Год назад
Same here. Did you find out the "problem"?
@danieluxury
@danieluxury Год назад
I ran "composer require symfony/stimulus-bundle" and the missing files were added.
@danieluxury
@danieluxury Год назад
then I also called "npm add @symfony/stimulus-bridge @hotwired/stimulus --dev" . I am new on web development, so I am not sure what I am doing :)
@ummehanyarozshandaanny2846
@ummehanyarozshandaanny2846 2 года назад
Thanks a lot for this. It's really helpful for me
@codewithdary
@codewithdary 2 года назад
Thank you, Umme :)
@ummehanyarozshandaanny2846
@ummehanyarozshandaanny2846 2 года назад
@@codewithdary all pleasure is mine
@ilyasbakirov
@ilyasbakirov 2 года назад
Tip: if you run npm run watch before adding method1.js in app.js and method2.js in webpack you will got compiled only method1.js. To get method2.js in build folder you need run npm run dev.
@kholodnov
@kholodnov 2 месяца назад
Friends, deleting/editing these lines can lead to various problems: {% block stylesheets %} {{ encore_entry_link_tags('app') }} {% endblock %} {% block javascripts %} {{ encore_entry_script_tags('app') }} {% endblock %}
@gayspunchbop
@gayspunchbop Год назад
ahhh javascript isnt showing up for me :( i get no errors in the browser and terminal, everything seems fine i just dont see the alert and console log in the browser…..
@pigloo06
@pigloo06 Год назад
noice
@codewithdary
@codewithdary Год назад
Thank you for watching :)
@qkenkenu
@qkenkenu Год назад
ENCORE is the stupidest, incomprehensible and redundant project that has ever been in programming.
@codewithdary
@codewithdary Год назад
:(
Далее
The joker favorite#joker  #shorts
00:15
Просмотров 10 млн
Webpack 5 Crash Course | Frontend Development Setup
41:17
PROOF JavaScript is a Multi-Threaded language
8:21
Просмотров 279 тыс.
Jordan Peterson On Importance Of Reading
9:03
Просмотров 3,7 млн
Why Signals Are Better Than React Hooks
16:30
Просмотров 477 тыс.