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

Unable to launch ROS #413

Closed joelbourbon closed 5 years ago

joelbourbon commented 5 years ago

Goals

Install ROS on a brand new VM on Azure.

Expected Results

Able to start the server after a fresh install following this guide.

Actual Results

> my-ros-app@1.0.0 start /home/(redacted)/realm/realm-mobile-server
> npm run build && node dist/index.js

> my-ros-app@1.0.0 build /home/(redacted)/realm/realm-mobile-server
> rm -rf dist; ./node_modules/.bin/tsc

node_modules/@types/node/index.d.ts(75,15): error TS2300: Duplicate identifier 'SharedArrayBuffer'.
node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts(24,11): error TS2300: Duplicate identifier 'SharedArrayBuffer'.
node_modules/typescript/lib/lib.es2017.sharedmemory.d

Steps to Reproduce

https://docs.realm.io/server/installation/manual-install#manual-install

Version of Realm and Tooling

NB: I did the exact same thing last week and it worked. Something apparently changed in the last version of ROS.

realm-probot[bot] commented 5 years ago

Hey - looks like you forgot to add a T:* label - could you please add one?

roberhofer commented 5 years ago

@fealebenpae : can you confirm whether this is addressed in the 3.18.4 release? Seem that Ian had issues installing on his laptop as well.

joelbourbon commented 5 years ago

Hi @roberhofer,

Thanks for the prompt reply.

I just tested updating ROS to the latest (3.18.4), wiped my project et re-initialized it: same results. Also tested on a brand new VM with the latest version: same results.

I deployed your solution last week on another VM and everything was great. Don't hesitate to contact me if you want me to test something.

Thanks,

fealebenpae commented 5 years ago

Hey @joelbourbon - you can fix this by opening tsconfig.json and deleting esnext from the lib array. We'll be sure to fix this in a new release.

joelbourbon commented 5 years ago

Thank @fealebenpae! It worked!

I hope you find a way to fix that in your next release 😄

realm-probot[bot] commented 5 years ago

Hey - looks like you forgot to add a T:* label - could you please add one?

ayushprashar commented 5 years ago

@fealebenpae I tried doing the same and it resulted in an error message that the feature token is invalid.

joelbourbon commented 5 years ago

@ayushprashar you forgot to do one step: https://docs.realm.io/server/installation/manual-install#1-add-your-feature-token