20 questions
-1
votes
0
answers
37
views
Cannot import js package installed with importmap in symfony 6
i've installed swiper js with importmap:require swiper in symfony. it download a umd version of the package in the vendor/
Note: i use it in a stimulus controller
We cannot import Swiper from "...
0
votes
1
answer
128
views
Symfony 7.3 AssetMapper, TailwindCSS, Preline : most of components don't work
Hey 'im trying to use Preline within a Symfony 7.3 projet which use Tailwindcss and AssetMapper.
To use it I imported Preline into the projet with this command : symfony console importmap:require ...
0
votes
1
answer
148
views
How best to import scripts on a specific page after global variable declaration with Symfony Asset Mapper? [closed]
I tried the solution for this question, and while it works great if I want my script on every page: How to import jQuery as a global variable with Symfony's AssetMapper?
However, I have dozens of ...
1
vote
1
answer
304
views
How to use css import with AssetMapper?
I'm working on a Symfony project and using Asset Mapper for the first time. I'm having trouble importing CSS files into a main CSS file. Here’s the situation:
My admin.css file works fine when I add ...
0
votes
0
answers
54
views
X-editable not works anymore in Sonata Admin after importing js dependencies with symfony asset mapper
After upgrade to symfony asset mapper, x-editable is not working anymore in sonata admin.
This is the error I go in app.js from sonata amdin https://github.com/sonata-project/SonataAdminBundle/blob/4....
2
votes
3
answers
1k
views
Symfony 7.2 (AssetMapper) : how to import bootstrap.min.js
I'm building a Symfony web app using version 7.2 and I'm using AssetMapper.
I'm trying to use Twitter Bootstrap in my project
The command
symfony console importmap:require bootstrap"
has not ...
0
votes
1
answer
110
views
Problem with FOSJsRouting: works with Webpack but not with AssetMapper
Description:
I'm facing an issue with FOSJsRouting in my Symfony project, especially when using AssetMapper. Here are the details of my configuration:
I've installed and configured the ...
1
vote
0
answers
148
views
How to import a texture/image asset within a JS file when using Symfony with assetmapper?
I'm trying to implement ThreeJS 3D animation on my Symfony + Assetmapper application. Displaying assets in the twig templates works fine and I was able to get a simple background animation running.
...
2
votes
2
answers
1k
views
Symfony 7.0 AssetMapper: JS Files Only Load on Initial Page Load or After F5 Refresh
I'm working on a project using Symfony 7.1 and PHP 8.3. I've encountered an issue with the AssetMapper where my JavaScript files only load on the initial page load or after an F5 refresh. When ...
2
votes
2
answers
3k
views
symfony 7, Twig, AssetMapper: assets are served fine on dev, but 404 in prod
I am naively trying to learn AssetMapper and follow the instructions but I must be doing something wrong. In my local development environment, it's working flawlessly. In the prod environment on the ...
2
votes
3
answers
1k
views
Executing JavaScript on page load in Symfony 7 using AssetMapper fails after following a link
I'm trying to implement BootStrap's color switcher in Symfony.
I've added BootStrap using AssetMapper and everything is working.
I've then copied the color switcher from BootStrap's examples page into ...
1
vote
1
answer
271
views
Symfony SassBundle not recognize the .yaml config
I am working on a Symfony App with AssetMapper & ux-twig-component.
To optimize resources at the loading, I made different stylesheets. My main stylesheet is a .ccs template file that I reuse in ...
0
votes
1
answer
328
views
AssetMapper and File Upload
with Symfony 7, I'm using AssetMapper. So my image files are located in assets/images.
In production, I build them with a little php bin/console asset-map:compile and life is beautiful.
But what ...
2
votes
1
answer
437
views
Symfony AssetMapper and TypeScript - How can I fix "Cannot find module" linting error?
I have created a Symfony project using the AssetMapper component alongside the AssetMapperTypeScriptBundle, as per the Symfony documentation.
I can successfully build and run my TypeScript Stimulus ...
0
votes
1
answer
881
views
How to use imported libraries with symfony's asset mapper ? (sf 7.0.4)
I wanted to try symfony's brand new assetmapper on my latest project, without external imports, it works just fine, but I cant yet get how to make it work when it comes to imported libraries...
I used ...