Console output:
```
Step 27/31 : RUN cd ${APP_DIR} && export PYTHON=python2.7 && npm install && npm run tsc && cd ${APP_DIR}/www && npm install && npm run build
---> Running in b97ecbee4861
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated @types/form-data@2.5.0: This is a stub types definition. form-data provides its own type definitions, so you do not need this installed.
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
> iconv@2.2.3 install /opt/app/node_modules/iconv
> node-gyp rebuild
make: Entering directory '/opt/app/node_modules/iconv/build'
CXX(target) Release/obj.target/iconv/src/binding.o
../src/binding.cc:35:11: error: ‘v8::Handle’ has not been declared
35 | using v8::Handle;
| ^~~~~~
../src/binding.cc:65:26: error: ‘Handle’ has not been declared
65 | static void Initialize(Handle
So it seems like node-gyp fails to rebuild iconv and tsc fails with node_modules/@types/node/index.d.ts(20,1): error TS1084: Invalid 'reference' directive syntax.
To reproduce:
Console output:
``` Step 27/31 : RUN cd ${APP_DIR} && export PYTHON=python2.7 && npm install && npm run tsc && cd ${APP_DIR}/www && npm install && npm run build ---> Running in b97ecbee4861 npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated @types/form-data@2.5.0: This is a stub types definition. form-data provides its own type definitions, so you do not need this installed. npm WARN deprecated har-validator@5.1.5: this library is no longer supported > iconv@2.2.3 install /opt/app/node_modules/iconv > node-gyp rebuild make: Entering directory '/opt/app/node_modules/iconv/build' CXX(target) Release/obj.target/iconv/src/binding.o ../src/binding.cc:35:11: error: ‘v8::Handle’ has not been declared 35 | using v8::Handle; | ^~~~~~ ../src/binding.cc:65:26: error: ‘Handle’ has not been declared 65 | static void Initialize(HandleSo it seems like
node-gyp
fails to rebuild iconv and tsc fails withnode_modules/@types/node/index.d.ts(20,1): error TS1084: Invalid 'reference' directive syntax.