# Local Server error building

**URL:** <https://forum.farmbot.org/t/local-server-error-building/4514>\
**Category:** Software\
**Created:** [January 27, 2019, 7:03am UTC](https://forum.farmbot.org/t/local-server-error-building/4514 "2019-01-27T07:03:37Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![I\_Kill\_Plants](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/i/91b2a8/32.png) [@I\_Kill\_Plants](https://forum.farmbot.org/u/I_Kill_Plants)\
**Post date:** [January 27, 2019, 7:03am UTC](https://forum.farmbot.org/t/local-server-error-building/4514/1 "2019-01-27T07:03:38Z")

</div>

I’m trying to set up a local server using the instructions in [Farmbot-Web-App/ubuntu\_example.sh at staging · FarmBot/Farmbot-Web-App · GitHub](https://github.com/FarmBot/Farmbot-Web-App/blob/master/ubuntu_example.sh). I’m running on a newly installed ubuntu 18.04.1 LTS Server (not desktop)

When running the sudo docker-compose run web npm run build step, I get the following errors:

ERROR in ./webpack/password\_reset/on\_init.ts 42:31  
Module parse failed: Unexpected token (42:31)  
You may need an appropriate loader to handle this file type.  
| return \_\_generator(this, function (\_a) {  
| switch (\_a.label) {

> ```
> case 0: return [4, import("react")];
> 
> ```

| case 1:  
| React = \_a.sent();  
@ ./webpack/password\_reset/index.tsx 40:0-35 42:33-39

ERROR in ./webpack/route\_config.tsx 80:36  
Module parse failed: Unexpected token (80:36)  
You may need an appropriate loader to handle this file type.  
| children: false,  
| $: “\*”,

> ```
> getModule: function () { return import("./404"); },
> 
> ```

| key: “FourOhFour”  
| });  
@ ./webpack/routes.tsx 35:0-48 59:26-40  
@ ./webpack/entry.tsx

Unfortunately I’m not familiar with webpack, but this looks like a configuration error. Any ideas?

---

<div class="post-metadata">

**Author:** ![RickCarlino](https://forum.farmbot.org/user_avatar/forum.farmbot.org/rickcarlino/32/3593_2.png) [@RickCarlino](https://forum.farmbot.org/u/RickCarlino)\
**Post date:** [January 28, 2019, 11:32am UTC](https://forum.farmbot.org/t/local-server-error-building/4514/2 "2019-01-28T11:32:55Z")

</div>

@I_Kill_Plants This is a bug that was discovered in the last 48 hours. We are fairly certain it is related to an NPM dependency, but have not yet deployed a fix.

---

<div class="post-metadata">

**Author:** ![I\_Kill\_Plants](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/i/91b2a8/32.png) [@I\_Kill\_Plants](https://forum.farmbot.org/u/I_Kill_Plants)\
**Post date:** [February 1, 2019, 12:40am UTC](https://forum.farmbot.org/t/local-server-error-building/4514/3 "2019-02-01T00:40:36Z")

</div>

Thanks for the response. I’ll keep an eye on git for updates.

---

<div class="post-metadata">

**Author:** ![nicolas](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/n/67e7ee/32.png) [@nicolas](https://forum.farmbot.org/u/nicolas)\
**Post date:** [February 7, 2019, 1:18pm UTC](https://forum.farmbot.org/t/local-server-error-building/4514/4 "2019-02-07T13:18:14Z")

</div>

Hi!

I’ve got exactly the same issue.  
Working with RAILS\_ENV en dev mode, I got fist this error:

ERROR in ./webpack/css/\_index.scss (./node\_modules/css-loader!./node\_modules/sass-loader/lib/loader.js!./webpack/css/\_index.scss)  
Module build failed (from ./node\_modules/sass-loader/lib/loader.js):  
Error: Missing binding /farmbot/node\_modules/node-sass/vendor/linux-x64-64/binding.node  
Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 10.x

Found bindings for the following environments:

- Linux 64-bit with Node.js 8.x

I’ll report the bug on github

---

<div class="post-metadata">

**Author:** ![RickCarlino](https://forum.farmbot.org/user_avatar/forum.farmbot.org/rickcarlino/32/3593_2.png) [@RickCarlino](https://forum.farmbot.org/u/RickCarlino)\
**Post date:** [February 7, 2019, 1:58pm UTC](https://forum.farmbot.org/t/local-server-error-building/4514/5 "2019-02-07T13:58:17Z")

</div>

@nicolas @I_Kill_Plants @derletztename BUG FIX UPDATE: The bug is fixed. It has not yet been released (you can see the fix on the `staging` branch on Github). We still need to do QA on the branch before we can tag a release.

---

<div class="post-metadata">

**Author:** ![derletztename](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/d/e9c0ed/32.png) [@derletztename](https://forum.farmbot.org/u/derletztename)\
**Post date:** [February 7, 2019, 4:08pm UTC](https://forum.farmbot.org/t/local-server-error-building/4514/6 "2019-02-07T16:08:40Z")

</div>

Great News @RickCarlino, thx 🙂  
Btw, what does QA stand for? I know it as Question and Answering at the end of a talk, but that’s probably wrong 😅  
Something with Quality maybe?

---

<div class="post-metadata">

**Author:** ![RickCarlino](https://forum.farmbot.org/user_avatar/forum.farmbot.org/rickcarlino/32/3593_2.png) [@RickCarlino](https://forum.farmbot.org/u/RickCarlino)\
**Post date:** [February 7, 2019, 5:00pm UTC](https://forum.farmbot.org/t/local-server-error-building/4514/7 "2019-02-07T17:00:32Z")

</div>

@derletztename “Quality Assurance”, which is just a fancy term to say “make sure we didn’t break old stuff while fixing new stuff”. I’m also happy to do Q&A for this release though! 😛

---

<div class="post-metadata">

**Author:** ![derletztename](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/d/e9c0ed/32.png) [@derletztename](https://forum.farmbot.org/u/derletztename)\
**Post date:** [February 8, 2019, 11:04am UTC](https://forum.farmbot.org/t/local-server-error-building/4514/8 "2019-02-08T11:04:05Z")

</div>

There was this gif this reminds me of: [https://9gag.com/gag/aE20p8x](https://9gag.com/gag/aE20p8x) 😅

How you do the QA btw? You can’t test every function by your own. Is there a tool for that or would you like us to act as betatesters?

---

<div class="post-metadata">

**Author:** ![RickCarlino](https://forum.farmbot.org/user_avatar/forum.farmbot.org/rickcarlino/32/3593_2.png) [@RickCarlino](https://forum.farmbot.org/u/RickCarlino)\
**Post date:** [February 8, 2019, 2:18pm UTC](https://forum.farmbot.org/t/local-server-error-building/4514/9 "2019-02-08T14:18:14Z")

</div>

@derletztename We have [automated unit tests](https://en.wikipedia.org/wiki/Unit_testing), but new features (or changes to old ones) still need to be reviewed by humans as a matter of policy. I’ll keep you posted.

---

<div class="post-metadata">

**Author:** ![I\_Kill\_Plants](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/i/91b2a8/32.png) [@I\_Kill\_Plants](https://forum.farmbot.org/u/I_Kill_Plants)\
**Post date:** [February 9, 2019, 7:38pm UTC](https://forum.farmbot.org/t/local-server-error-building/4514/10 "2019-02-09T19:38:38Z")

</div>

👍 Btw – I appreciate you giving us access to the source code. I was looking for a robotics project to do with my daughter, and the ability to set up and run our own local server was really the tipping point to choose farmbot. Access to the source code opened up a whole different aspect to how deep this project could go. We not only get the ultimate live-action real world video game…but we can tear it apart and see how all it all works.

So I wanted to give you a well deserved thank you.

---

<div class="post-metadata">

**Author:** ![derletztename](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/d/e9c0ed/32.png) [@derletztename](https://forum.farmbot.org/u/derletztename)\
**Post date:** [February 11, 2019, 3:55pm UTC](https://forum.farmbot.org/t/local-server-error-building/4514/11 "2019-02-11T15:55:38Z")

</div>

Thx for mentioning us 🙂 :

> Fix bug noted by @HamishWHC @derletztename and forum user `I_KILL_PLANTS` . Thanks for your help!

That means it’s done and we can download and test it now?

> <https://github.com/FarmBot/Farmbot-Web-App/pull/1111>
>
> \# What's New?
> 
> \* Stop using Webpack, start using Parcel. Special thanks to Pa…rcel team for all their help on the transition.
> \* Fix bug noted by @HamishWHC @derletztename and forum user \`I\_KILL\_PLANTS\`. Thanks for your help!
> \* Upgrade Ruby version (SELF HOSTED USERS: You will need to run \`sudo docker-compose build\`)
> \* Provide better CeleryScript validation errors
> \* Unify Points::Create, ToolSlots::Create and Plants::Create
> \* Auto-fetch farmware names
> \* Limit Points and Logs count to \< 1000 (will not affect vast majority of users)
> \* Minor updates to MQTT-based resource management.
> \* Add support tables in preparation for "sequence variables" feature release (WIP)
> \* Add Redis-based caching to (hopefully) speed up some of the slower resources.
> \* Increase FBOS end of life version (consider upgrading soon!)
> \* Various tests, bug fixes and build system updates.

---

<div class="post-metadata">

**Author:** ![RickCarlino](https://forum.farmbot.org/user_avatar/forum.farmbot.org/rickcarlino/32/3593_2.png) [@RickCarlino](https://forum.farmbot.org/u/RickCarlino)\
**Post date:** [February 11, 2019, 5:04pm UTC](https://forum.farmbot.org/t/local-server-error-building/4514/12 "2019-02-11T17:04:54Z")

</div>

@derletztename Not yet. It is not merged yet. There are still some discussions/final checks happening internally.

You can subscribe to that PR and re-upgrade when it is merged.

**Really important side note:** Once the PR is merged, you will need to run the following to upgrade:

```auto
  git pull https://github.com/FarmBot/Farmbot-Web-App.git master
  sudo docker-compose build # <== THIS IS A NEW STEP
  sudo docker-compose run web bundle install
  sudo docker-compose run web npm install
  sudo docker-compose run web rails db:migrate

```

---

<div class="post-metadata">

**Author:** ![RickCarlino](https://forum.farmbot.org/user_avatar/forum.farmbot.org/rickcarlino/32/3593_2.png) [@RickCarlino](https://forum.farmbot.org/u/RickCarlino)\
**Post date:** [February 11, 2019, 8:30pm UTC](https://forum.farmbot.org/t/local-server-error-building/4514/13 "2019-02-11T20:30:35Z")

</div>

@derletztename @I_Kill_Plants @nicolas The release is up. You may upgrade by running the commands in the message above. Thanks for everyone’s help in identifying the issue.

---

<div class="post-metadata">

**Author:** ![I\_Kill\_Plants](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/i/91b2a8/32.png) [@I\_Kill\_Plants](https://forum.farmbot.org/u/I_Kill_Plants)\
**Post date:** [February 12, 2019, 5:39am UTC](https://forum.farmbot.org/t/local-server-error-building/4514/14 "2019-02-12T05:39:03Z")

</div>

Using this update, I was able to successfully build and run the web app (Ubuntu desktop 18.04.1)

Thanks for the help!

---

<div class="post-metadata">

**Author:** ![nicolas](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/n/67e7ee/32.png) [@nicolas](https://forum.farmbot.org/u/nicolas)\
**Post date:** [February 14, 2019, 9:58am UTC](https://forum.farmbot.org/t/local-server-error-building/4514/15 "2019-02-14T09:58:20Z")

</div>

I’m trying it today.

---

<div class="post-metadata">

**Author:** ![derletztename](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/d/e9c0ed/32.png) [@derletztename](https://forum.farmbot.org/u/derletztename)\
**Post date:** [February 17, 2019, 2:51pm UTC](https://forum.farmbot.org/t/local-server-error-building/4514/16 "2019-02-17T14:51:55Z")

</div>

Finally found some time for the upgrade and it worked perfectly. It’s up and running again and all the database data is still there in the right place 😊

Thx @RickCarlino and team, great work 👍
