protectai / rebuff

LLM Prompt Injection Detector
https://playground.rebuff.ai
Apache License 2.0
1.12k stars 80 forks source link

Fix broken client/src/index.ts #9

Closed woop closed 1 year ago

woop commented 1 year ago
../client/dist/src/index.js
Module not found: ESM packages (node-fetch) need to be imported. Use 'import' to reference the package instead. https://nextjs.org/docs/messages/import-esm-externals

Import trace for requested module:
./pages/api/playground.ts

https://nextjs.org/docs/messages/module-not-found

On the https://github.com/woop/rebuff/tree/monorepo branch

woop commented 1 year ago

Fixed by @shrumm