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 bug has not already been reported
Fastify version
4.26.0
Plugin version
6.0.5
Node.js version
18.19.0
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
20.04
Description
If the vite.config file has a mts file extension (vite.config.mts), which is a file extension Vite suggests in its documentation, calling server.vite.ready() throws an error similar to the following:
Prerequisites
Fastify version
4.26.0
Plugin version
6.0.5
Node.js version
18.19.0
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
20.04
Description
If the
vite.config
file has amts
file extension (vite.config.mts
), which is a file extension Vite suggests in its documentation, callingserver.vite.ready()
throws an error similar to the following:This is as a result of
'mts'
not appearing in this array:https://github.com/fastify/fastify-vite/blob/dev/packages/fastify-vite/config.js#L200
Steps to Reproduce
Change the file extension of your
vite.config
file to.mts
Expected Behavior
I expect the Vite config file to be detected, as Vite itself can detect it.
The text was updated successfully, but these errors were encountered: