…to see it (and wouldn't mind helping with it). A fully Turbo-powered EasyAdmin would be *awesome* and could also much more easily power things like modals.
Sorry I can't give a better answer. But because we don't control the EasyAdmin JavaScript…
…and he is asking why turbo isn't working.
That is a really important question: how do you integrate turbo into easy admin?
I have implemented turbo frames, but I cannot get turbo drive to work because it messes up the javascript with the easy…
…it said that there's a bit of a gradient with Turbo:
A) Turbo Drive: maximum dev happiness + nice UI
B) Turbo Frames: medium dev happiness (due to more complex than Drive) = nicer UI
C) Turbo Drive: least dev happiness (due to MORE complex…
…it should be possible, you should just enable it for those pages in the way we show in our Turbo tutorial: https://symfonycasts.com/screencast/turbo . Though if you watched that course - sometimes Turbo may have some edge cases, that you would need to handle…
…work, but it won't reload the modal. Console logging shows the correct template being returned, it's just not rendering because the header is missing the Turbo-Frame id.
I've tried setting the headers, several ways in several places (in axios, in PHP)…
…started `npm run watch` and I saw another problem - error in ./assets/controllers.json
Error: The file "@symfony/ux-turbo/package.json" could not be found.
Installed `composer require symfony/ux-turbo` and `npm install --force` - does not help.
How get this turbo package.json…
|
|
// ... lines 1 - 15
|
|
return [ |
|
|
// ... lines 17 - 23
|
|
'@hotwired/stimulus' => [ |
|
|
// ... line 25
|
|
'preload' => true, |
|
], |
|
'@symfony/stimulus-bundle' => [ |
|
|
// ... line 29
|
|
'preload' => true, |
|
], |
|
'@hotwired/turbo' => [ |
|
|
// ... line 33
|
|
'preload' => true, |
|
], |
|
]; |
See Code Block in Script
…hotwired/stimulus` in your `package.json`, then this error:
> Module build failed: Module not found:
"../../vendor/symfony/ux-turbo/assets/dist/turbo_controller.js" contains a reference to the file "@hotwired/stimulus
doesn't make much sense! You mentioned that you have `package.json…
…I think the problem was likely related to Flex recipes. By installing StimulusBundle first, its recipe executes and sets up some files that the Turbo recipe probably needs. I'd need to actually try this in the reverse order to know for sure, but anyway…
Hello,
For your information, it seems that my problem came from the fact that I had installed turbo before stimulus. It must have given me some information or files for turbo to work properly. By trying again on a new project in the right order…
…I tried disabling xdebug with xdebu.mode=off but the ajaxtoolbar error still happens but the others dissapear. If I remove symfony/ux-turbo all is clean so is something with turbo and the profiler... the is no profilerpanel so it fails
https://symfony-devs.slack…
…symfony/stimulus-bundle`
Then I did it again :
`npm install --force`
` npm run watch`
However, this wasn't enough, I still have requests without ajax, and the console.log returns Turbo is not defined.
The two files (controllers.json, bootstrap.js) have not been modified.
…3.*",
"symfony/ux-turbo": "^2.9",
"symfony/validator": "6.3.*",
"symfony/web-link": "6.3.*",
"symfony/webpack-encore-bundle": "^2.0",
"symfony/yaml": "6.3.*",
"twig/extra-bundle": "^2.12|^3.0",
"twig/twig": "^2.12|^3.0"
},
```
And I couldn't get Turbo to work by…
…Module build failed: Module not found:
"../../vendor/symfony/ux-turbo/assets/dist/turbo_controller.js" contains a reference to the file "@hotwired/stimulus".
```
After adding the line in packages json
```
"@symfony/ux-turbo": "file:../../vendor/symfony/ux-turbo/assets",
```
I run 'npm install' and 'npm…
…stuff was moved into ux-turbo in 2.6.1. It sounds like you're coding along with our tutorial code. In that case, you should follow the directions in the original video: you WILL need to install the separate `symfony/ux-turbo-mercure` (which…
…in mercure.yaml, I tried changing 'default' to 'test' but the error reported still says "The Turbo stream transport 'default' doesn't exist." And that's even after dumping cache.
And not sure if it's relevant, but I am running PHP 7.4 (as…
…json`, add this to `devDependencies`:
```
"@symfony/ux-turbo": "file:vendor/symfony/ux-turbo/assets",
```
This is another thing that Flex adds for you (assuming it can find your `package.json` in the standard spot - but perhaps something in your setup made it miss doing this)…
Thanks for the response Ryan, but still not working
This is the current error now:
```
Module build failed (from ./node_modules/@symfony/stimulus-bridge/dist/webpack/loader.js):
Error: The file "@symfony/ux-turbo/package.json" could not be found. Try running "yarn install --force…
…
You're totally right! In the video, I had forgotten to add a `target="_top"` to the `turbo-frame`, which forces all links inside to behave like normal links. We DO have a note about this in the video - https://symfonycasts.com/screencast/symfony-doctrine…
Well, this works for me now, I'm not sure what caused this, maybe it was an cache issue? I also added an empty "templates/default/default.turbo_stream.twig" file to the project tree. Anyway, thanks for your support :-)!
x
682