DEP0128:具有无效 main 条目且包含 index.js 文件的模块
【DEP0128: modules with an invalid main entry and an index.js file】
类型:运行时
【Type: Runtime】
具有无效 main 条目(例如 ./does-not-exist.js)并且在顶层目录中还有 index.js 文件的模块,将会解析 index.js 文件。这种做法已被弃用,并将在未来的 Node.js 版本中抛出错误。
【Modules that have an invalid main entry (e.g., ./does-not-exist.js) and
also have an index.js file in the top level directory will resolve the
index.js file. That is deprecated and is going to throw an error in future
Node.js versions.】