You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Trying to run the rag testapp as ESM module is throwing an error related to dotprompt
/usr/local/google/home/ssbushi/OpenSource/genkit/js/core/lib/action.js:156
throw new Error(
^
Error: Unable to find plugin name used in the action name: dotprompt
at validatePluginName (/usr/local/google/home/ssbushi/OpenSource/genkit/js/core/lib/action.js:156:11)
at validateActionName (/usr/local/google/home/ssbushi/OpenSource/genkit/js/core/lib/action.js:149:5)
at action (/usr/local/google/home/ssbushi/OpenSource/genkit/js/core/lib/action.js:90:56)
at defineAction (/usr/local/google/home/ssbushi/OpenSource/genkit/js/core/lib/action.js:169:15)
at definePrompt (/usr/local/google/home/ssbushi/OpenSource/genkit/js/ai/lib/prompt.js:76:42)
at Dotprompt.define (/usr/local/google/home/ssbushi/OpenSource/genkit/js/plugins/dotprompt/lib/prompt.js:165:32)
at defineDotprompt (/usr/local/google/home/ssbushi/OpenSource/genkit/js/plugins/dotprompt/lib/prompt.js:215:10)
at file:///usr/local/google/home/ssbushi/OpenSource/genkit/js/testapps/rag/lib/prompt.js:19:32
at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:329:24)
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.
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
Remove(This is now merged)genkitEvals
plugin intestapps/rag/src/index.ts
if Make Evaluators plugin work with ESM #158 is not merged yet.Expected behavior
Genkit starts without errors
Runtime
Node version
The text was updated successfully, but these errors were encountered: