Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #380 [Turbo] Fix TypeScript compilation issue... again (7-zet…
…e-7) This PR was squashed before being merged into the 2.x branch. Discussion ---------- [Turbo] Fix TypeScript compilation issue... again | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | License | MIT _webpack.config.js_: ```js Encore ... .enableTypeScriptLoader() .enableForkedTypeScriptTypesChecking() ``` Error message on `yarn encore production`: ``` Failed to compile with 1 errors error in vendor/symfony/ux-turbo/Resources/assets/src/turbo_controller.ts:14:8 11:22:22 TS2339: Property 'Turbo' does not exist on type 'Window & typeof globalThis'. 12 | 13 | // Expose Turbo to the rest of the app to allow for dynamic Turbo calls > 14 | window.Turbo = Turbo; | ^^^^^ 15 | 16 | /** 17 | * Empty Stimulus controller only used for Symfony Flex wiring. ``` Previously, #331 proposed a different solution, but it was rejected due to the changes already being prepared in hotwired/turbo#280. At the moment, the changes in the second package have been made, as a result of which it is possible to change lines that cause a compilation error. Commits ------- 25482a7 [Turbo] Fix TypeScript compilation issue... again
- Loading branch information