Fibers error after installing chatgpt npm package

I am trying to use the npm chatgpt package, but get the following fibers error. I remember that there are some problems with fibers, but can this be resolved? I put it in an external script, but this makes conversations quite hard.

I import the npm package in a vanilla project like this:

import { ChatGPTAPI } from ‘chatgpt’

An this is the output from meteor:

W20230510-10:54:19.207(2)? (STDERR) C:\Users\depper\AppData\Local.meteor\packages\meteor-tool\2.12.0\mt-os.windows.x86_64\dev_bundle\server-lib\node_modules\fibers\future.js:280
W20230510-10:54:19.217(2)? (STDERR) throw(ex);
W20230510-10:54:19.217(2)? (STDERR) ^
W20230510-10:54:19.218(2)? (STDERR)
W20230510-10:54:19.218(2)? (STDERR) Error: Cannot find module ‘chatgpt’
W20230510-10:54:19.220(2)? (STDERR) at makeMissingError (packages\modules-runtime.js:222:12)
W20230510-10:54:19.222(2)? (STDERR) at Module.require (packages\modules-runtime.js:241:17)
W20230510-10:54:19.222(2)? (STDERR) at Module.moduleLink [as link] (C:\Users\depper\AppData\Local.meteor\packages\modules\0.19.0\npm\node_modules@meteorjs\reify\lib\runtime\index.js:52:22)
W20230510-10:54:19.223(2)? (STDERR) at module (server/main.js:1:183)
W20230510-10:54:19.223(2)? (STDERR) at fileEvaluate (packages\modules-runtime.js:336:7)
W20230510-10:54:19.224(2)? (STDERR) at Module.require (packages\modules-runtime.js:238:14)
W20230510-10:54:19.224(2)? (STDERR) at require (packages\modules-runtime.js:258:21)
W20230510-10:54:19.225(2)? (STDERR) at C:\data\code\node\testchat.meteor\local\build\programs\server\app\app.js:99:15
W20230510-10:54:19.225(2)? (STDERR) at C:\data\code\node\testchat.meteor\local\build\programs\server\boot.js:385:38W20230510-10:54:19.226(2)? (STDERR) at Array.forEach ()
W20230510-10:54:19.226(2)? (STDERR) at C:\data\code\node\testchat.meteor\local\build\programs\server\boot.js:210:21W20230510-10:54:19.227(2)? (STDERR) at C:\data\code\node\testchat.meteor\local\build\programs\server\boot.js:439:7
W20230510-10:54:19.227(2)? (STDERR) at Function.run (C:\data\code\node\testchat.meteor\local\build\programs\server\profile.js:256:14)
W20230510-10:54:19.228(2)? (STDERR) at C:\data\code\node\testchat.meteor\local\build\programs\server\boot.js:438:13=> Exited with code: 1

I think your issue is explained here:

1 Like

Thanks, I was hoping there is a way to use but, I’ll just wait.