找不到模块:无法解析'next-translate/appWithI18n'

问题描述 投票:0回答:0

在yarn workspace monorepo,nextjs 13环境下应用next-translate时出现问题

环境:

  • 纱浆果
  • yarn workspace monorepo
  • 下一个翻译
  • nextjs 13
  • 文件夹结构 enter image description here 应用程序包.json `{ "name": "admin-coaching", "packageManager": "[email protected]", “脚本”:{ “开发”:“下一个开发”, “构建”:“下一个构建”, "开始": "下次开始", “分析”:“分析=真正的纱线构建” }, “依赖”:{ "@mdx-js/loader": "2.3.0", "@mdx-js/反应": "2.3.0", "@next/mdx": "13.2.1", “下一步”:“13.2.0”, “下一个翻译”:“2.0.1”, “反应”:“18.2.0”, “反应-dom”:“18.2.0” }, “devDependencies”:{ "@next/bundle-analyzer": "13.1.6", "@types/node": "18.13.0", "@types/react": "18.0.28", “下一个翻译插件”:“2.0.2”, “打字稿”:“4.9.5” } }
  • 错误图片`enter image description here

帮帮我~

在yarn berry环境下可以正常工作,但是只在monorepo环境下不行

internationalization yarn-workspaces nextjs13 yarn-berry next-translate
© www.soinside.com 2019 - 2024. All rights reserved.