Forge/api weird error

Getting the error:

'Fetch error:' TypeError: (0 , api_out.default) is not a function

I can’t seem to trace it. Using the fetch method from @forge/api. I applied a normal get action.

async function fetchData(url) {
  try {
    const response = await fetch(url);

    if (!response.ok) {
      throw new Error('Network response was not ok');

    const data = await response.json();
    console.log('Data:', data);
    return data
  } catch (error) {
    console.error('Fetch error:', error);



Would you be able to tell us whether you’re using Custom UI for Forge UI?

The code provided helps but we may need more to investigate faster.
Would you be able to provide a minimal reproducible Forge app of this?

Hello Joshua,

I think I found the cause already while I was checking out the forge-ai-basic repo, I noticed that when I was installing the app it showed the external links from the manifest with forge install.

I used forge install --upgrade before as stated in docs and that didn’t work.