I remember the frustration I felt when I was trying to integrate the "chatgpt" pacakge with NestJS for the first time. I have probably saved you some time, so please leave a ⭐ on this project.
One issue that users may encounter when using the "chatgpt" library is the error:
[ERR_REQUIRE_ESM]: require() of ES Module ...
.
This error occurs because the "chatgpt" library does not support CommonJS, the module system used by require().
I hope this boilerplate project helps make your experience with NestJS and the "chatgpt" library a little smoother. If you have any questions or run into any issues, please don't hesitate to open an issue in the repository.
A progressive Node.js framework for building efficient and scalable server-side applications.
Nest framework TypeScript starter repository.
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
Nest is MIT licensed.