It’s been a hot minute since I ventured deep into the innards of Component Builder. I’d like to think I learned a few things since the last time. Maybe yes…Maybe no…Maybe maybe.!…
Next.js Multisite Addon Always Resolves to Default Site
The instances of Sitecore with more than one site are on the rise. SXA allows for templated Site and Tenant Management, and Sitecore even released a special Multisite Addon which handles all the resolution of sites by hostname, just like the way things used to be! This could have easily been Borat However, we were…
Next.js Multisite constantly reloading
Here’s a quick and dirty one today… We’re setting up a new solution with a few Sitecore sites as a foundation. Let’s call them Site A (siteA.com and Site B (siteB.com). (Sorry for the lack of creativity.). The directions for this can be found on the Sitecore Multisite Add-on Docs. When browsing to siteA.com, things…
Vercel’s “An unexpected error happened when running this build.”
Imagine a world where everything works all the time, and there are no weird-ass errors to troubleshoot. Sounds boring, yeah? Good thing it’s not a real place. Fantasies aside, sometimes things that have been working for ages just stop working. We ran into that case just recently with a project. This project has been live…
Disabling Custom Animation in Experience Editor with Spread Syntax
Today’s post is actually somewhat of a fun one! No frustrating broken things, no shenanigans with a black box to worry about. Just some simple Typescript fun. Mr. Rose is as happy as I am. So let’s take this common hero component. It has some gorgeous animations courtesy of Framer Motion. Highly recommend this library…
Experience Edge Can’t Resolve Site
I’m gonna start this off with the whole “I’m not an expert…” deal. Because frankly, I’m not an expert when it comes to Experience Edge. It’s relatively new. And I am too. Glad we got that part out of the way. So what’s the deal? Well, we were working on a new site and for…
Storybook Stories Gotcha when Upgrading to JSS 21.2.1
We recently had to upgrade our solution to JSS 21.2.1 to fix a pesky NextJS Hydration issue. It was a little tedious, but once we spun up a new empty instance and compared our code, it was easy to spot the differences. One thing that changed rather drastically was the 404 page. This seems like…
Error: Cannot find module ‘./src/temp/config’ when running Storybook 7
Our development process with Next or JSS includes working with Storybook. First off, it’s pretty slick to be able to see all the components in one place, even outside Sitecore. Second, those fun mac folks aren’t going to be spinning up Windows containers in the near future, and they need to be able to see…
Cannot find module ‘react-dom/server’
I was working on a new project this week and starting with JSS 20. This wasn’t a NextJS project, unfortunately, so it was going to be a webpack kind of day. Make that two days. Ok, it was more..but whatever..read the post. Anywho, I popped open my server.bundle.js file, which had been deployed to my…
‘globalThis is not defined’ in JSS Site
We recently pushed out an update to our JSS project and were greeted with one of those “Well that’s fun, we’ve never seen that error before” moments. Here’s the entire text of the YSOD, for SEO purposes 😉 [NodeInvocationException: globalThis is not defined ReferenceError: globalThis is not defined at react.Component.react.Component.LayoutServiceBase (C:\home\site\wwwroot\dist\[SNIP]\server.bundle.js:76193:63) at C:\home\site\wwwroot\dist\[SNIP]\server.bundle.js:80869:3 at Object.<anonymous>…
-
Recent Posts
Categories
Archives
- October 2024
- September 2024
- August 2024
- April 2024
- March 2024
- February 2024
- January 2024
- October 2023
- September 2023
- August 2023
- July 2023
- June 2023
- March 2023
- November 2022
- October 2022
- September 2022
- August 2022
- July 2022
- May 2022
- March 2022
- November 2021
- September 2021
- August 2021
- July 2021
- May 2021
- April 2021
- February 2021
- November 2020
- October 2020
- August 2020
- July 2020
- June 2020
- March 2020
- January 2020
- October 2019
- May 2019
- March 2019
- February 2019
- January 2019
- December 2018
- July 2018
- May 2018
- February 2018
- January 2018
- November 2017
- October 2017
- September 2016
- August 2016
- July 2016
- June 2016
- May 2016
- April 2016