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
Martha VMartha V 

LWC I am having problem using the PUBSUB in the LWC-Recipes getting error The component must implement at least one of lightning__RecordPage interface

I have two components, both working in a Record Page. The record has a master-detail relationship to a custom object.
component 1 adds a record to the object (detail)
component 2 lists all the detail records related to the RecordId.

The work separately, but when I add the PUBSUB and the extra imports (page reference & pubsub) I am getting an error when I try to deploy the code to the dev-org. 

The error says:
The component must implement at least one of lightning__RecordPage interface.
Both components have the <target>lightning__RecordPage</target> in the metadata file, and as stated above they work fine withouth the PUBSUB code.

Any one knows what might be going on?
also, the dev-org is running on v. Summer 19 
Best Answer chosen by Martha V
Martha VMartha V
What fixed this error was to delete the component from the page (in App Builder)... in case anyone else is struggling with this. Once I took it out of the page I was able to deploy it modified.