# Issues building Cristal locally

**URL:** <https://forum.xwiki.org/t/issues-building-cristal-locally/17734>\
**Category:** Cristal\
**Created:** [September 29, 2025, 12:42pm UTC](https://forum.xwiki.org/t/issues-building-cristal-locally/17734 "2025-09-29T12:42:26Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![mui](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/m/edb3f5/32.png) [@mui](https://forum.xwiki.org/u/mui)\
**Post date:** [September 29, 2025, 12:42pm UTC](https://forum.xwiki.org/t/issues-building-cristal-locally/17734/1 "2025-09-29T12:42:26Z")

</div>

Dear Cristal Team,

I hope it is the right place to file an issue (as i am not allowed to create an issue in Jira).  
Following the steps to run Cristal locally, currently there is a build error with a sub-sub dependency (tiptap/extension-horizontal-rule).

my workaround is adding these lines to package.json to force using these versions:

“overrides”: {  
“@tiptap/core”: “^2.26.2”,  
“@tiptap/extension-horizontal-rule”: “^2.26.2”  
}

do you have a better fix?

---

<div class="post-metadata">

**Author:** ![pjeanjean](https://forum.xwiki.org/user_avatar/forum.xwiki.org/pjeanjean/32/5901_2.png) [@pjeanjean](https://forum.xwiki.org/u/pjeanjean)\
**Post date:** [September 30, 2025, 10:08am UTC](https://forum.xwiki.org/t/issues-building-cristal-locally/17734/2 "2025-09-30T10:08:33Z")

</div>

Hi,

Building and running the latest commit in a clean environment, I could not reproduce your issue.

It is a bit weird that your fix requires allowing these package versions, since we should still be using version 2.13.0 of tiptap. I had some issues with a custom deployment in the past where I had to explicitly fix some dependencies of tiptap extensions to version 2.13.0, and you might have something similar here (but this was with regular npm and I could not reproduce it with the Cristal repository itself, are you using the right version of pnpm?)

Now, tiptap should be deprecated in the next release in favor of blocknote (see [Loading...](https://jira.xwiki.org/projects/CRISTAL/issues/CRISTAL-639) ), so this should not come up anymore. In the meantime, you could either keep your patch (if it works for you), or try to apply the current open PR ( [CRISTAL-639: Remove TipTap editor by ClementEXWiki · Pull Request #1243 · xwiki-contrib/cristal · GitHub](https://github.com/xwiki-contrib/cristal/pull/1243) ) even though it might not be final.

Hope it helps!

---

<div class="post-metadata">

**Author:** ![mui](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/m/edb3f5/32.png) [@mui](https://forum.xwiki.org/u/mui)\
**Post date:** [September 30, 2025, 10:55am UTC](https://forum.xwiki.org/t/issues-building-cristal-locally/17734/3 "2025-09-30T10:55:50Z")

</div>

thanks for replying. i just tried again (without any changes) and suddenly i could build without any issues.

the original error is this one:

![Screenshot 2025-09-25 at 20.47.31](https://forum.xwiki.org/uploads/default/optimized/2X/b/b3df862a5641d465ae614a9bd3a2059b4c7e72fb_2_690x23.jpeg)

---

<div class="post-metadata">

**Author:** ![mui](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/m/edb3f5/32.png) [@mui](https://forum.xwiki.org/u/mui)\
**Post date:** [September 30, 2025, 12:12pm UTC](https://forum.xwiki.org/t/issues-building-cristal-locally/17734/4 "2025-09-30T12:12:49Z")

</div>

oh, i would like to ask you to run after install “pnpm start” or “pnpm run dev:cristal-web”. I am getting the error again:

 ![Screenshot 2025-09-30 at 14.09.25](https://forum.xwiki.org/uploads/default/original/2X/1/15d4c2c60edfa46a92ad37ab6f788f7d04c6ea97.jpeg)

---

<div class="post-metadata">

**Author:** ![mleduc](https://forum.xwiki.org/user_avatar/forum.xwiki.org/mleduc/32/2328_2.png) [@mleduc](https://forum.xwiki.org/u/mleduc)\
**Post date:** [September 30, 2025, 12:57pm UTC](https://forum.xwiki.org/t/issues-building-cristal-locally/17734/5 "2025-09-30T12:57:28Z")

</div>

Hello @mui !

I tried on my side, with the steps below, and the last command (`pnpm run start`) worked as expected.

```auto
cd /tmp
git clone git@github.com:xwiki-contrib/cristal.git
cd cristal
pnpm i
pnpm run build
pnpm run start

```

I used pnpm 10.17.1 and node v22.20.0 (current lts). Can you confirm you are using the same versions and followed the same steps?

---

<div class="post-metadata">

**Author:** ![mui](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/m/edb3f5/32.png) [@mui](https://forum.xwiki.org/u/mui)\
**Post date:** [September 30, 2025, 2:07pm UTC](https://forum.xwiki.org/t/issues-building-cristal-locally/17734/6 "2025-09-30T14:07:43Z")

</div>

thanks for going through those steps. Those helped identifying the real issue:

It is on my setting, because my global (home directory) .npmrc contained `lockfile=false` which ofc ignored the pinned versions and therefore this error occurred.

now everything works fine!

PS: in case someone runs into the same issue, add `lockfile=true` in the workspace’s .npmrc to explicitly set it in the project and override the global setting.

---

<div class="post-metadata">

**Author:** ![mleduc](https://forum.xwiki.org/user_avatar/forum.xwiki.org/mleduc/32/2328_2.png) [@mleduc](https://forum.xwiki.org/u/mleduc)\
**Post date:** [September 30, 2025, 2:33pm UTC](https://forum.xwiki.org/t/issues-building-cristal-locally/17734/7 "2025-09-30T14:33:03Z")

</div>

> [@mui](#):
>
> PS: in case someone runs into the same issue, add `lockfile=true` in the workspace’s .npmrc to explicitly set it in the project and override the global setting.

Thanks! I won’t add an `.npmrc` on cristal for now. But, I’ll keep that in mind if this issue gets reported again.

@mui out of curiosity, what brought you to set `lockfile=false` globally?

---

<div class="post-metadata">

**Author:** ![mui](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/m/edb3f5/32.png) [@mui](https://forum.xwiki.org/u/mui)\
**Post date:** [October 1, 2025, 6:42am UTC](https://forum.xwiki.org/t/issues-building-cristal-locally/17734/8 "2025-10-01T06:42:59Z")

</div>

TLDR;  
The main reason is to overcome questions like “when is the right time to update something”.

we are using Angular for our frontend apps and in recent years there were huge changes, which caused fairly old codebases to be refactored in a bigger manner (that is time consuming). That lead to the decision to be always up to date with all dependencies and tackle breaking changes as soon as they occur.

There are some aspects which makes this work for us:

- small dependency footprints (we spend a lot of time evaluating packages before integrating them)
- just a couple of developers consuming those repositories
- updating deps and adjusting code to make them work is first priority to us 🙂

does that make sense to you?

PS: Sorry for the confusion in my previous post, I was not meant to ask you to add a .npmrc, but for a person which has the same issue (probably rare case).

---

<div class="post-metadata">

**Author:** ![mleduc](https://forum.xwiki.org/user_avatar/forum.xwiki.org/mleduc/32/2328_2.png) [@mleduc](https://forum.xwiki.org/u/mleduc)\
**Post date:** [October 1, 2025, 7:01am UTC](https://forum.xwiki.org/t/issues-building-cristal-locally/17734/9 "2025-10-01T07:01:18Z")

</div>

> [@mui](#):
>
> does that make sense to you?

Definitely 🙂  
We solved the issue by using renovate ([Mend Renovate Enterprise Edition](https://www.mend.io/mend-renovate/)), leading to a lot of pull requests that we have to handle. But overall that allows us to stay up to date while having control over what is upgraded and when.

---

<div class="post-metadata">

**Author:** ![mui](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/m/edb3f5/32.png) [@mui](https://forum.xwiki.org/u/mui)\
**Post date:** [October 1, 2025, 7:10am UTC](https://forum.xwiki.org/t/issues-building-cristal-locally/17734/10 "2025-10-01T07:10:26Z")

</div>

same, we use renovate too 😃
