我目前正在将mdx集成到我的vue3 typescript项目中。\Jannik\Desktop\mdx-vue3\vue.config.js:
ERROR Error [ERR_REQUIRE_ESM]: require() of ES Module C:\UsersError [ERR_REQUIRE_ESM]: require() of ES Module C:\User
但是它没有构建,并且有一个错误。Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: │ │ require() of ES modules is not supported│
│ require() of ~~/nuxt.config.js from所以我删除了package.js
如何将pm2与基于ES模块的包(类型:“模块”)结合使用,我在没有任何有用帮助的情况下研究了类似的问题(有人说它在windows上不起作用,但我使用的是linux)。我总是收到错误:
Error [ERR_REQUIRE_ESM]: require() of ES Module /opt/app/server/lib/src/index.j