ReferenceError: __dirname is not defined in ES module scope

import path from "path";
const __dirname=path.resolve()
posted @ 2024-03-12 08:47  羽鱼  阅读(30)  评论(0编辑  收藏  举报