Created by: modernizer-bot
A file extension must be provided when using the
import
keyword to resolve relative or absolute specifiers. Directory indexes (e.g.'./startup/index.js'
) must also be fully specified.This behavior matches how import behaves in browser environments, assuming a typically configured server.
Ref: https://nodejs.org/docs/latest-v17.x/api/esm.html#mandatory-file-extensions
(Even if you perhaps using require()
and extension-less paths, using extension can help with the migration to esm later)
Hi, I'm experimenting with a github bot to do quality checks and sending automated pr that could improve your code. Sorry if I'm not helpful.