Closed ssbushi closed 6 months ago
This error is the error you get when you call definePrompt
but the dotprompt
plugin has not been installed. I tried building the dotprompt extension as an ESM module and it seems to work fine. I don't think this is an issue with ESM compatibility.
The issue is with the way dotprompt is compiled in ESM mode I believe (The sample installs the plugin correctly).
Based on conversations with @pavelgj, a possible fix is to make it so that defineDotprompt
does not depend on dotprompt plugin.
Having the same here!
Resolved in 952b3054
Describe the bug Trying to run the
rag
testapp as ESM module is throwing an error related to dotpromptTo Reproduce
"type": "module"
totestapps/rag/pacakge.json
genkit start
genkitEvals
plugin intestapps/rag/src/index.ts
if #158 is not merged yet.~ (This is now merged)Expected behavior Genkit starts without errors
Runtime
Node version