My immediate thought when viewing your initial error is that this is not a QuickSight related error, but rather a JavaScript/TypeScript error. You are referencing embeddedVisual and dot notating into addActions. Where is your embeddedVisual reference coming from?
Also, a side note, I would recommend ordering the options in the same way that they are ordered in the SDK documentation. It should be Name, CustomActionId, then Status.
If you can provide some more information about where embeddedVisual is coming from, we can try and resolve the error. Thank you!
Let me switch gears slightly, in the interest of possibly finding at least one working path, and then let’s circle back to the cases I have documented above, if we need to.
You’re probably right that there may be some TypeScript/NextJS difficulty here. What I have done is to put the invocation of addActions in a useEffect hook, and then check that the variable is defined before proceeding.
WIth this, I get errors very similar to what are described in here and here.
Hello @tct1, I have a few thoughts on the issue you are facing. First of all, it may be beneficial to bring up this issue on the Discussions tab or in the Issues tab of the SDK Github. There you might be able to receive a little more guidance on this issue as I haven’t added visual actions this way.
Another thing I noticed in the documentation for the addActions functionality is that it mentions using this with an existing action:
“This method appends the new actions provided in the request to the existing actions of the visual”
Is there currently an action on the visual that you are trying to embed? If not, that may be a road block for this functionality.
Hello @tct1, did my last response help you resolve the issue you are facing in QuickSight? If so, please mark my reply as the solution. Otherwise, let us know what other ways you have tried to debug or fix this error and we can help guide you further.
If we do not hear back from you in 3 days, I will archive this topic. Thank you!