function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
rishi jaykar 1rishi jaykar 1 

Use a Lightning Web Component from another Package/Namespace?

I am developing a couple of components and I have 2 different namespaces (for project reasons), I tried to use the component form namespace B on my component on namespace A although I can save and it compiles fine when the page loads I get this error:
This page has an error. You might just need to refresh it. Attempting to reference cross-namespace module ComvTable-recordList in c-comvcontactCompntTableLwcCom Failing descriptor: {c:tetsApp}
I know with Aura components you can define access="global" but I can't find the way to do it on LWC if there is.
can it's possible to use the same as Aura?
Yes, I know this limitation of lightning web Component :
Limits A custom Lightning web component can’t access a Lightning web component or module in a custom namespace. It can access Lightning web components and modules only in the c and lightning namespaces.
But if it possible then user/Developer can use manage package LWC Component in custom namespace Component.
< /c-parent-Component>
rishi jaykar 1rishi jaykar 1
So what about this Idea: