We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do you want to request a feature or report a bug? bug What is the current behavior?
背景:icepkg 在 monorepo 仓库中初始化 rax 组件,依赖管理使用 yarn。依赖安装于 workspace,在执行对应包内的 start 命令报错如下:找不到 react/jsx-runtime 依赖。实则此依赖在项目中已安装,只不过不是在包内的 node_modules 中按照的。比较费解,看了下@ice/pkg-plugin-docusaurus 中对依赖的引用也没有什么特殊处理。
start
node_modules
@ice/pkg-plugin-docusaurus
另外,如果我到对应包内安装依赖,对应包即可正常开发和发布。
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
What is the expected behavior? 依赖安装在 workspace 中(外层),组件可正常打包
The text was updated successfully, but these errors were encountered:
https://github.com/ice-lab/icepkg/blob/main/packages/plugin-docusaurus/src/plugin.js#L31
像是这里写死原因
Sorry, something went wrong.
https://github.com/ice-lab/icepkg/blob/main/packages/plugin-docusaurus/src/plugin.js#L31 像是这里写死原因
恩,看着应该是这里了。可以尝试用 require.resolve() 改一下。另外你能提供可复现的 demo 么?
require.resolve()
No branches or pull requests
Do you want to request a feature or report a bug?
bug
What is the current behavior?
背景:icepkg 在 monorepo 仓库中初始化 rax 组件,依赖管理使用 yarn。依赖安装于 workspace,在执行对应包内的
start
命令报错如下:找不到 react/jsx-runtime 依赖。实则此依赖在项目中已安装,只不过不是在包内的node_modules
中按照的。比较费解,看了下@ice/pkg-plugin-docusaurus
中对依赖的引用也没有什么特殊处理。另外,如果我到对应包内安装依赖,对应包即可正常开发和发布。
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
What is the expected behavior?
依赖安装在 workspace 中(外层),组件可正常打包
The text was updated successfully, but these errors were encountered: