CMS Development

Nick_Haras
Member

There was an unexpected error building the extension files.

SOLVE

I just added this on image. I can see it perfectly in the dev env but I get this error when building. 

There was an unexpected error building the extension files. Please try again. Contact HubSpot support if the error keeps happening: RollupError: Could not resolve "../../assets/Self_Storage_logo.svg" from "../../tmp/extensions/Example.jsx"

 

my folder structure is like this

Screenshot 2024-10-02 at 1.47.16 PM.png

 

0 Upvotes
1 Accepted solution
Nick_Haras
Solution
Member

There was an unexpected error building the extension files.

SOLVE

Hello @Jaycee_Lewis , I moved the assets folder inside the extensions and adjusted the path. Then it worked. I am not sure why it didn't work with my previous setup.

View solution in original post

2 Replies 2
Nick_Haras
Solution
Member

There was an unexpected error building the extension files.

SOLVE

Hello @Jaycee_Lewis , I moved the assets folder inside the extensions and adjusted the path. Then it worked. I am not sure why it didn't work with my previous setup.

Jaycee_Lewis
Community Manager
Community Manager

There was an unexpected error building the extension files.

SOLVE

Hi, @Nick_Haras 👋 Did you manage to get this worked out? If not, we can ask a few of our community champions if they have any tips or suggestions for you.

 

Talk soon! — Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes