"Tried to show an iframe with a location that is neither absolute nor an asset" when trying to render a React app in nav_bar | Community
Skip to main content

"Tried to show an iframe with a location that is neither absolute nor an asset" when trying to render a React app in nav_bar

  • February 17, 2022
  • 6 replies
  • 0 views

Jesse14

I have a React support app that has been working fine in top_bar but as soon as I moved it to nav_bar I started getting this error. Are there any other types of changes that need to be made to accommodate the location change other than updating the manifest?

6 replies

Zach22
  • February 17, 2022

Hi Jesse,

Do you mind sharing your manifest configuration? And is this error happening after installing the app or while you are locally testing? 


Jesse14
  • Author
  • February 18, 2022
{
"name":"",
"author":{
"name":"",
"email":"",
"url":""
},
"defaultLocale":"en",
"private":true,
"location":{
"support":{
"nav_bar":"assets/index.html"
}
},
"version":"1.0",
"frameworkVersion":"2.0"
}
It's happening while locally testing.


Zach22
  • February 21, 2022

Hi Jesse,

So this looks like it's related to a bug we have identified with ZCLI. We are going to be working on resolving this in the next few weeks, however, in the interim you can try specifying the URL as a property of the location; this should resolve your issue.

e.g.

"support": {
"nav_bar": {
"url": "assets/index.html"
}
}

Hope this helps!


Jesse14
  • Author
  • February 22, 2022

Yup that did it! Thanks. When the ZCLI bug is fixed, will I need to revert back to the previous version of manifest (not declaring "url")?


Zach22
  • February 22, 2022

Hey Jesse,

When the ZCLI bug is fixed, you won't need to revert back to the previous version of the manifest as both ways of providing the url are supported.


Zach22
  • February 24, 2022

Hey Jesse, just wanted to give you an update that we have released a new version of ZCLI (1.0.0-beta.16) which resolves this issue.