I’m trying to set up a local server using the instructions in 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?