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?