RocketChat / Rocket.Chat.Apps-engine

The Rocket.Chat Apps engine and definitions.

Home Page:https://rocketchat.github.io/Rocket.Chat.Apps-engine/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot Deploy the given example App to Server

Rohan749 opened this issue · comments

Description:

In the RocketChat.Devs website, under Apps Engine -> UIKit -> Opening the Contextual Bar, there is a given app to be cloned and tested inside the Rocket chat server. After cloning, I tried to deploy it on a local server.
But it is missing a module "typescript".

Steps to reproduce:

  1. Go to RocketChat.Devs website, under Apps Engine -> UIKit -> Opening the Contextual Bar.
  2. Clone the given app and try to Deploy it on Local Server.
  3. It cannot be deployed as it is missing a module as given in the error description.
  4. Link Of the Given app: https://github.com/RocketChat/apps-contextual-bar-open-example

Expected behavior:

Expected to get uploaded in the RocketChat server

Actual behavior:

Screenshot from 2022-03-20 21-10-41

Pretty sure NODE_ENV is in production. Either do npm config set -g production false or run npm install --dev directly.

https://github.com/RocketChat/apps-contextual-bar-open-example/blob/65eb12b1432ddc2b83f6facaa69b7d1b3c9a9f15/package.json#L6

It is there. As @fdellwing mentioned, whenever you do npm install ensure you are not running node in production mode and you're in development mode since typescript is a dev dependency.