APIs & Integrations

realtebo2
Participant

how to use ui extension npm package in a standalone app?

We are developing a standalone SPA.

It integrates with Hubspot, of course

 

We started from a poc actually running as a custom card.

 

We want to keep the same UI, so we are trying to

- Intsall: npm i @hubspot/ui-extensions

import { Text } from "@hubspot/ui-extensions";
<Text>Prova</Text>

At runtime we face this error

realtebo2_0-1732876758973.png

 

What the trick to use component library in a SPA (we are using next 15 to be exact) ?
0 Upvotes
1 Reply 1
BérangèreL
Community Manager
Community Manager

how to use ui extension npm package in a standalone app?

Hi @realtebo2, I hope that you are well!

Thanks for asking the Community!

I'd love to put you in touch with some of our Top Experts: Hi @miljkovicmisa, @Syeda_Fatima and @jonchim do you have suggestions to help @realtebo2, please?

Thanks so much and have a great weekend!

Best,
Bérangère


Saviez-vous que la Communauté est disponible en Français ?
Rejoignez les discussions francophones en changeant votre langue dans les paramètres !

Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings!


0 Upvotes