Skip to main content
Question

createInstance() not recognized as function

  • April 19, 2022
  • 1 reply
  • 548 views

Joey_Zingarelli

I have created a component with four variants called fileStatusComponentSet. I want to place an instance of that component on the current page with a plugin

But when I run createIntsance() it throws an error

var coverFileStatusInstance = fileStatusComponentSet.createInstance()

it throws an error in the console saying type error: not a function

I am quite perplexed as I see documentation for createInstance() and have seen other code that runs it no problem. What am I missing? Thanks in advance!

Joey_Zingarelli

SOLVED: I was referencing the componentSet not the specific component

Just commenting in case anyone else runs into this same problem


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings