-
-
Notifications
You must be signed in to change notification settings - Fork 44
Closed
Description
💥 Regression Report
Loading plugins which use fastify-plugin produces a warning message when running a native ES module program.
Last working version
Worked up to version: 2.0.2
Stopped working in version: 2.0.3
To Reproduce
Steps to reproduce the behavior:
Install latest fastify and fastify-static, run the following script.mjs (tested in Node.js 14.8.0):
// script.mjs
import fastifyStatic from 'fastify-static';Expected behavior
fastify-static should validate the expected version of fastify is installed, nothing should display. Instead it prints:
fastify not found, proceeding anyway
Adding a printout of the exception shows TypeError: Cannot read property 'filename' of undefined.
Your Environment
- node version: 14.8.0
- fastify version: 3.2.1
- os: Linux
- Looks to be caused by Use require.resolve to load fastify #94 and Support webpack #97
Metadata
Metadata
Assignees
Labels
No labels