-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AssetMapper #42
Comments
Hey @Bredhis, thank you for the kind words 😊 Personally, I've never used the AssetMapper before, but after some reading, I've added necessary stuff to the bundle (based on this article) in the #43 PR. I'll test it further tomorrow and release a new version. If you wish to check if those changes are enough, please require the |
Hey @Kreyu 🙂 Wow, thank you so much for your quick response! I have installed everything fresh. But unfortunately I get the same error as yesterday, namely this: I've tried to investigate a little and the only package in my My guess is what is missing in your bundles
|
Hey, thanks for the response! I've checked multiple Symfony UX bundles, and looks like providing individual controllers in the // src/DependencyInjection/KreyuDataTableExtension.php
if ($this->isAssetMapperAvailable($container)) {
$container->prependExtensionConfig('framework', [
'asset_mapper' => [
'paths' => [
__DIR__ . '/../../assets/controllers' => '@kreyu/data-table-bundle',
],
],
]);
} Without this part, the error you're describing is raised. The only way I was able to reproduce this, was installing current release, then requiring After clearing cache, the mapping seems to be working properly:
Can you please confirm that this is not an issue related with the caching? |
Hey! I am very sorry for the extra work I have caused and I feel a bit stupid now. Even if it wasn't the Symfony cache, your hint was right. The project is in a Docker container and although I have made a new deploy, this cache caused the trouble. So I deleted the image, rebuilt it completely and tadaa, it works. Normally the error messages are a bit clearer, so I know immediately that the vendor directory is not up-to-date. I'm sorry that I didn't think that far ahead and didn't tried basic stuff like this before writing here. Have a great start to the week! |
Hey! No worries, I'm happy that it works, thanks for your time 😄 Cheers! |
Available in version 0.15 |
Hello @Kreyu,
I really like the direction this project is going in and for the great documentation at this early stage, one can only applaud.
Unfortunately, my problem is that the project I want to integrate this bundle into uses AssetMapper and not yarn/npm.
I have not been able to integrate the bundles assets into the
importmap.php
.Would it be possible to use this bundle together with the AssetMapper at the moment?
The text was updated successfully, but these errors were encountered: