Skip to main content
Aleksei Murashin (Certinia) a posé une question dans LWC

I'd like to use the lwc:spread directive for a component in an LWR project (not in Communities, just an off-platform site). The doc says that this feature needs to be enabled using the enableLwcSpread compiler option.

 

I have added this option to the lwc section in lwr.config.js but when I run the site it throws an error "CompilerError: LWC1154: Invalid lwc:spread usage. The `lwc:spread` directive must be enabled in order to use this feature."

 

Is this feature supported in LWR? If so, then how do I enable it?

 

#LWR #LWR Node

3 réponses
0/9000