Skip to main content
Up and Coming
July 28, 2025
Question

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

I've copied the script from this tutorial page

Meta Developers

the second line has this code block

import * as hz from 'horizon/core';

import { UIComponent, View, Text, Binding, } from "horizon/ui";

When i put it in my script i get this error: 
Cannot find module 'horizon/ui' or its corresponding type declarations.

What is happening here?

1 reply

SeeingBlue
Honored Contributor
July 28, 2025

It is possible you do not have the UI API activated in this world.

 

Upcoming Events : Performance Pro - UI Unleashed - Building Responsive & Performant Interfaces Thursday June 19th 5:00 PM PT - Register June Programming Calendar