autoimports in server folder is not working if using js files
The auto import of defineEventHandler (and the rest) is not working in .js files within a server folder inside a layer.
The autoimport is working fine if the file is in the top level app instead of the layer or if the file is a .ts file.
I have been able to replicate this with a new layer using the starter template:
npx nuxi init --template layer
Is this expected behavior and the server folder only supports .ts in layers or is it a possible bug?0 Replies