Forum Discussion

SoakingRich's avatar
2 months ago
Solved

"Cannot find module 'horizon/npc' or its corresponding type declarations."

Im trying to use the NPC API but its not available to activate in my world's API settings. The npc module loads correctly in the Profit or Perish template but cant be added to any other world?

  • This is one of Horizon's toggleable APIs.

    Go to "Scripts {}" => "Settings (cog)" => "API" then toggle horizon/npc. Then recompile and you should be in business 👍

4 Replies

  • This is one of Horizon's toggleable APIs.

    Go to "Scripts {}" => "Settings (cog)" => "API" then toggle horizon/npc. Then recompile and you should be in business 👍

    • SoakingRich's avatar
      SoakingRich
      Member

      Thanks, but it seems like its actually not there in the list -   is this still a gradual rollout?

       

      • arvind.kushwaha.590312's avatar
        arvind.kushwaha.590312
        Explorer

        Yes, this was a rollout. I was doing some testing so that by using some prompts, people's work could become easier, but I think there are still mistakes. I created different IDs and tested them. I got better results in Gemini.