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
ethanoneethanone 

With LWC open-sourced, can you use LWC on Classic VF pages?

I'm trying to rewrite some older visualforce pages that will work for both my lightning and classic users. I'd prefer using LWC since it is the recommended approach to new projects and much less complicated. However it does not work with Lightning out. Now that LWC is open-sourced, could I write an opensource LWC component and present it on both a lighting record page for lightning users as well as a VF page for classic users?
Raj VakatiRaj Vakati
LWC Wnt support  following exp including  VF pages

Lightning Out
Lightning Components for Visualforce
Standalone Apps
Salesforce Console (Navigation Item API, Workspace API, UtilityBar API)
Utility Bars
URL Addressable Tabs
Flows
Snap-ins Chat
Lightning for Gmail, Outlook Integration
EMP API, Conversation Toolkit API, Omni Toolkit API, Quick Action API
Standard Action Overrides, Custom Actions, Global Actions, List View Actions, Related List View Actions
Chatter Extensions


But There is a workaround 
  1. Create LWC 
  2. Call the LWC from Aura Component 
  3. Call this Aura Component in VF page whihc is utlimatly refer to the LWC
ethanoneethanone
All those limitations exist for the opensource LWC? Can you link a tutorial for this workaround?
ethanoneethanone
I managed to put an LWC in an Aura App in a VF page and get it working. How do I pass a record id all the way down to the LWC?