当我使用 message.htmlView 在 adonis js 中发送邮件时遇到错误



输入图片描述

错误:

Error: "@adonisjs/view" must be installed before using "message.htmlView"

我已经安装了这个包,但是仍然出现错误。

在运行命令npm i @adonisjs/view之后,接下来要做的是在它可以工作之前配置包,然后运行命令node ace configure @adonisjs/view

更多信息,请访问https://docs.adonisjs.com/guides/views/introduction#setup

最新更新