JS Partials in theme created with React (2026.3)

Hey,

TLDR: does JS Partials work in CMS Theme created with React?

Lately I’ve migrated my react modules from 2025.1 to 2026.3. I used the @hubspot/create-cms-theme package and structure.

I have my partials inside /components/partials/[partial-name]/index.tsx

It worked before migration and now it’s acting weird: I mean, partials don’t work on localhost/when proxing published website (i get no error anywhere - they just dont show up) , but after i deploy and preview the page they work.

When i start the local server there is error:

- line 6: Error in `@preview/…/@projects/…/base/templates/layouts/base.hubl.html`: PublicApiException: Unable to render JS Component because a JS Rendering Lambda function corresponding to entry point `@projects/…/base/components/partials/[partial-name]/index.tsx` was not found. Verify that `@projects/[]/base/components/partials/[partial-name]/index.tsx` is a valid `entryPoint`

As i mentioned, i don’t get any error when deploying the project.

I can see the default theme in @hubspot/create-cms-theme does not have any partials.

The docs are not clear.
Here it says components directory is: The directory that contains the project’s islands and modules directories.
But in other react section JS Partials: Partials must be located in the components/partials/ subdirectory of the JavaScript project component

Am i missing something or there is no support for partials in new react theme?

Hey @tomaszklusak,

Welcome to the Community!

Based on the documentation on this, it may be worth confirming that the path in your js_partial tag matches the file exactly, just to rule that out. The JS Partials doc has the specifics there.

In the meantime, also tagging in some folks from our community to see if they’ve run into this before:

Hey @SteveHTM, @GRajput, @Humashankar – Do you have any suggestions for @tomaszklusak on this?

Thanks in advance!

Sam, Community Manager

Yes, i’m using full path to the file: @projects/[]/base/components/partials/[partial-name]/index.tsx

Also, in the logs of build i can see all modules are created with log:

Creating module from files in 'server/module-definitions/[module-name]'

Can’t see any info about partials tho.