realm / realm-object-server

Tracking of issues related to the Realm Object Server and other general issues not related to the specific SDK's
https://realm.io
293 stars 42 forks source link

realm-object-server won't build. Missing module ./logger #314

Closed molind closed 6 years ago

molind commented 6 years ago

Goals

Build realm server

Expected Results

Everything should work

Actual Results

node_modules/realm-object-server/dist/shared/TokenValidator.d.ts(3,24): error TS2307: Cannot find module './logger'.

Steps to Reproduce

There is Docker file to reproduce:

FROM ubuntu:16.04

RUN apt-get update && \
    apt-get -y install curl build-essential python-software-properties

RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -

RUN apt-get update && \
    apt-get install nodejs

RUN npm install -g pm2 realm-object-server@2.1.0

COPY realm-object-server-agreement.json /root/.realm/

RUN mkdir /realm && cd /realm && ros init server

RUN cd /realm/server && npm run build

Code Sample

See above.

Version of Realm and Tooling

Logs

docker-compose build log Step 9/9 : RUN cd /realm/server && npm run build ---> Running in d2f9c4d137d8 > my-ros-app@1.0.0 build /realm/server > rm -rf dist; ./node_modules/.bin/tsc node_modules/realm-object-server/dist/shared/TokenValidator.d.ts(3,24): error TS2307: Cannot find module './logger'. npm ERR! Linux 4.4.0-87-generic npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "build" npm ERR! node v6.11.4 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! my-ros-app@1.0.0 build: `rm -rf dist; ./node_modules/.bin/tsc` npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the my-ros-app@1.0.0 build script 'rm -rf dist; ./node_modules/.bin/tsc'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the my-ros-app package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! rm -rf dist; ./node_modules/.bin/tsc npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs my-ros-app npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls my-ros-app npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /realm/server/npm-debug.log
molind commented 6 years ago

Fixed in 2.1.1