Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: GifGetter_1.GifGetter is not a constructor #24

Open
mikerogerz opened this issue Oct 7, 2021 · 4 comments
Open

TypeError: GifGetter_1.GifGetter is not a constructor #24

mikerogerz opened this issue Oct 7, 2021 · 4 comments

Comments

@mikerogerz
Copy link

Error in cli when running:
rc-apps package

To compile to js for manual installation.

@JNBG
Copy link

JNBG commented Apr 1, 2022

Same here - did you find any solution?

@ykorzikowski
Copy link

ykorzikowski commented Nov 24, 2022

docker run -it node:16 bash
npm install -g @rocket.chat/apps-cli
cd /tmp

git clone https://github.com/wreiske/Rocket.Chat.App-Giphy.git
cd Rocket.Chat.App-Giphy
npm install
rc-apps package

Reproducable by commans above

@dexhek
Copy link

dexhek commented Mar 20, 2023

Same error while compiling... same procedure as ykorzikowski
someone succeeded? @wreiske
thanks

@AmanNegi
Copy link

AmanNegi commented May 23, 2024

The issue is caused because we are trying to initialize the GifGetter in the constructor itself. If done inside the extendConfiguration block it works just fine. Also using initialize function would be more valid here as it states that:

Recommended place to add settings and slash commands.

PS: Creating a PR (fix for this issue and using the initalize function).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants