sabbelasichon / typo3_encore

Use Webpack Encore within TYPO3
Other
106 stars 19 forks source link

[BUGFIX] Do not crash when the TYPO3 cache is empty and flux is used #177

Closed cweiske closed 1 year ago

cweiske commented 1 year ago

When using typo3_encore in combination with flux, an exception occurs when loading a page after freshly clearing all caches:

The build "_default" is not configured

This happens because with an fully empty cache, TYPO3 needs to re-build the TypoScript configuration. When flux is used, building the TS array means parsing all content elements, which in turn instantiates tags in them.

Because of constructor dependency injection, EntrypointLookupFactory::getCollection() gets called, which fails badly.

After fixing this, the settings are still empty because

Resolves: https://github.com/sabbelasichon/typo3_encore/issues/166

sabbelasichon commented 1 year ago

Thanks a lot for your work. Make sense for me and i am fine with merging it.