Failed to preview Step with id: `send-email`
I am trying to use a react-email template and I cannot get it to preview in the local studio as I keep getting that error. Other ways seem to work like inline html with vars.
5 Replies
Do you see any logs in your terminal?
I'm suspecting some compulation or rendering issue
there is this, but doesn't help me. can't paste the whole thing. If you need it all, I can get it.
✗ Failed to execute workflowId: 'subscription-due'
├ σ stepId: 'send-email'
├ α action: 'preview'
└ Δ duration: '135.33ms'
Y [Error]: Failed to preview Step with id: send-email
: {}
at Ee.previewStep (webpack-internal:///(rsc)/./node_modules/@novu/framework/dist/servers/next.js:27:3237)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.eval [as email] (webpack-internal:///(rsc)/./node_modules/@novu/framework/dist/servers/next.js:24:13061)
at async subscriptionDueWorkflow.name [as execute] (webpack-internal:///(rsc)/./app/novu/workflows/subscription-due.js:24:5)
at async Ee.executeWorkflow (webpack-internal:///(rsc)/./node_modules/@novu/framework/dist/servers/next.js:25:373)
at async preview (webpack-internal:///(rsc)/./node_modules/@novu/framework/dist/servers/next.js:27:5441)
at async Oe.handleAction (webpack-internal:///(rsc)/./node_modules/@novu/framework/dist/servers/next.js:27:4996)
at async eval (webpack-internal:///(rsc)/./node_modules/@novu/framework/dist/servers/next.js:27:3876)
at async eval (webpack-internal:///(rsc)/./node_modules/@sentry/nextjs/build/cjs/common/wrapRouteHandlerWithSentry.js:57:36)
at async F:\code\sk\node_modules\next\dist\compiled\next-server\app-route.runtime.dev.js:6:55778
at async eO.execute (F:\code\sk\node_modules\next\dist\compiled\next-server\app-route.runtime.dev.js:6:46527)
at async eO.handle (F:\code\sk\node_modules\next\dist\compiled\next-server\app-route.runtime.dev.js:6:57112)
at async doRender (F:\code\sk\node_modules\next\dist\server\base-server.js:1352:42)
at async cacheEntry.responseCache.get.routeKind (F:\code\sk\node_modules\next\dist\server\base-server.js:1574:28)
at async DevServer.renderToResponseWithComponentsImpl
anyone? stuck here.@SubsKeepr I've just tried to replicate this project locally and the email properlu works for me. One thing I noticed in your error message is that the workflow id called subscription-due, while in the workflow definition you shared it's called "trial-ending" could you try visiting the localstudio and removing the url path? Just visiting http://localhost:2022 as potentially you are trying to preview the workflow by it's old name
Thanks for catching that. I will check it out