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
I have searched existing issues to ensure the issue has not already been raised
Issue
Currently in the documentation under Getting Started and Your First Plugin here
There is no ESM example for the plugin, this should probably be added as there's no real mention until that point of the fastify-plugin library until the next section so if you just followed the code verbatim you get an error around the module not having an export named default
The text was updated successfully, but these errors were encountered:
Following issue fastify#5292, this commit introduces an ESM example in the 'Your First Plugin' section of the documentation, enhancing clarity for new contributors.
Additionally, it updates the `package.json` to include `"type": "module"`, ensuring compatibility with ESM syntax and preventing module resolution errors for users following the documentation.
Signed-off-by: Atila Guler <128936466+atilagulers@users.noreply.github.com>
It includes the ESM example in the 'Your First Plugin' section along with a snipped for "type: "module" configuration in the documentation to clarify setup for ESM. Looking forward to the review and feedback.
Prerequisites
Issue
Currently in the documentation under Getting Started and Your First Plugin here
There is no ESM example for the plugin, this should probably be added as there's no real mention until that point of the
fastify-plugin
library until the next section so if you just followed the code verbatim you get an error around the module not having an export named defaultThe text was updated successfully, but these errors were encountered: