Unexpected token keyword «function», expected punc «,» [__offline_serviceworker:817,47]
Fresh FreeBSD 10.3 jail - yarn run build
ends up with
ERROR in __offline_serviceworker from UglifyJs
Unexpected token keyword «function», expected punc «,» [__offline_serviceworker:817,47]
Full logs from available:
Packages installed on the machine:
# pkg -j frontend info
c-ares-1.12.0_2 Asynchronous DNS resolver library
ca_root_nss-3.36 Root certificate bundle from the Mozilla Project
curl-7.59.0 Command line tool and library for transferring data with URLs
expat-2.2.5 XML 1.0 parser written in C
gettext-runtime-0.19.8.1_1 GNU gettext runtime libraries and programs
git-lite-2.16.3 Distributed source code management tool (lite package)
gmake-4.2.1_2 GNU version of 'make' utility
icu-60.2_2,1 International Components for Unicode (from IBM)
indexinfo-0.3.1 Utility to regenerate the GNU info page index
libffi-3.2.1_2 Foreign Function Interface
libnghttp2-1.31.0 HTTP/2.0 C Library
libuv-1.19.2 Multi-platform support library with a focus on asynchronous I/O
node-9.10.1 V8 JavaScript for client and server
pcre-8.40_1 Perl Compatible Regular Expressions library
python2-2_3 The "meta-port" for version 2 of the Python interpreter
python27-2.7.14_1 Interpreted object-oriented programming language
readline-7.0.3_1 Library for editing command lines as they are typed
yarn-1.5.1 Package manager for node, alternative to npm
Edited by saper