# Current main appears not to build?

**URL:** https://meta.discourse.org/t/current-main-appears-not-to-build/287138
**Category:** Development
**Created:** [November 30, 2023, 10:29pm UTC](https://meta.discourse.org/t/current-main-appears-not-to-build/287138 "2023-11-30T22:29:24Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [November 30, 2023, 10:29pm UTC](https://meta.discourse.org/t/current-main-appears-not-to-build/287138/1 "2023-11-30T22:29:24Z")

</div>

When attempting to run a local dev instance, I’m getting this after `bin/ember-cli -u`:

```plaintext
- building...
Build Error (TemplateCompiler) in raw-templates/badge-selector-autocomplete.hbr

ENOENT: no such file or directory, open '/tmp/broccoli-155704EZeLMQlFLy1Y/out-0004-template_compiler/raw-templates/badge-selector-autocomplete.js

```

I could have somehow broken things locally, but this hasn’t occured before.

It’s expecting a js file to go along with an `hbr` file?! Why would it do that?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [November 30, 2023, 10:52pm UTC](https://meta.discourse.org/t/current-main-appears-not-to-build/287138/2 "2023-11-30T22:52:48Z")

</div>

OK solved!

I was attempting to use latest version of node (20.x) as I’d been told 16.x was out of date.

when I switched back to lts/hydrogen (18.x) it built fine again.

Things clearly don’t work with node 20.x yet (for me!)

Lesson learnt. :mortar_board:

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [December 1, 2023, 7:28pm UTC](https://meta.discourse.org/t/current-main-appears-not-to-build/287138/3 "2023-12-01T19:28:01Z")

</div>

> [@merefield](#):
>
> Things clearly don’t work with node 20.x yet (for me!)

That’s good to know. I’ve been seeing this warning but ignoring it:

`WARNING: Ember CLI v5.0.0 is not tested against Node v20.10.0. See "https://github.com/ember-cli/ember-cli/blob/master/docs/node-support.md" to find out which version of Node is best to use.`

I need Node `v20.10.0` for another app that’s running concurrently on my local machine. Installing [NVM](https://github.com/nvm-sh/nvm) seems to have resolved the issue:

`~/discourse$ nvm use 18.18.2`

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [December 1, 2023, 7:49pm UTC](https://meta.discourse.org/t/current-main-appears-not-to-build/287138/4 "2023-12-01T19:49:36Z")

</div>

Yeah `nvm` was far more straightforward to use on WSL2 than `n` which had all kinds of permission issues …

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [December 31, 2023, 7:49pm UTC](https://meta.discourse.org/t/current-main-appears-not-to-build/287138/5 "2023-12-31T19:49:48Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
