You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempted to load class "GenericLinkProvider" from namespace "Fig\Link". Did you forget a "use" statement for "Symfony\Component\WebLink\GenericLinkProvider"
#83
Closed
sabruss opened this issue
Nov 24, 2019
· 3 comments
· Fixed by #84
Description
Attempted to load class "GenericLinkProvider" from namespace "Fig\Link". Did you forget a "use" statement for "Symfony\Component\WebLink\GenericLinkProvider"
How to reproduce
create new project symfony/skeleton composer req encore
activate preload
webpack_encore:
preload: true
in config/package/webpack_encore.yaml
composer req web-link as requested by the bundle
Possible Solution
change namespace from Fig\Link to Symfony\Component\WebLink in Symfony\WebpackEncoreBundle\EventListener\PreLoadAssetsEventListener
The text was updated successfully, but these errors were encountered:
It seems like the preload feature is relying on symfony/web-link to install fig/link-utils (so this bundle is using the FIG package as a transient dependency), but since the WebLink component no longer relies on this package as of 4.4, this check is no longer good enough to protect against turning on an optional feature without all dependencies.
Symfony version(s) affected: 5
Description
Attempted to load class "GenericLinkProvider" from namespace "Fig\Link". Did you forget a "use" statement for "Symfony\Component\WebLink\GenericLinkProvider"
How to reproduce
create new project symfony/skeleton
composer req encore
activate preload
in config/package/webpack_encore.yaml
composer req web-link
as requested by the bundlePossible Solution
change namespace from
Fig\Link
toSymfony\Component\WebLink
inSymfony\WebpackEncoreBundle\EventListener\PreLoadAssetsEventListener
The text was updated successfully, but these errors were encountered: