Skip to content
New issue

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

package 设置 exports 字段时,umd 构建失败 #692

Open
Wxh16144 opened this issue Aug 9, 2023 · 1 comment
Open

package 设置 exports 字段时,umd 构建失败 #692

Wxh16144 opened this issue Aug 9, 2023 · 1 comment

Comments

@Wxh16144
Copy link
Member

Wxh16144 commented Aug 9, 2023

复现仓库: https://github.com/Wxh16144/father-bug-report

问题描述: 仓库 readme.md

build logs

[email protected] build /Users/wuxh/Code/father-bug-report/packages/bar
father build

info - Clean output directories
info - Bundle from src/utils/index.ts to dist/index.min.js
error - Error: ERROR in ./src/utils/index.ts 1:0-32
Module not found: Error: Can't resolve 'foo/utils' in '/Users/wuxh/Code/father-bug-report/packages/bar/src/utils'

webpack compiled with 1 error
at handler (/Users/wuxh/Code/father-bug-report/node_modules/.pnpm/@umijs[email protected][email protected][email protected][email protected]/node_modules/@umijs/bundler-webpack/dist/build.js:82:79)
at finalCallback (/Users/wuxh/Code/father-bug-report/node_modules/.pnpm/@umijs[email protected][email protected][email protected][email protected]/node_modules/@umijs/bundler-webpack/compiled/webpack/index.js:61937:32)
at /Users/wuxh/Code/father-bug-report/node_modules/.pnpm/@umijs[email protected][email protected][email protected][email protected]/node_modules/@umijs/bundler-webpack/compiled/webpack/index.js:61954:13
at Hook.eval [as callAsync] (eval at create (/Users/wuxh/Code/father-bug-report/node_modules/.pnpm/@umijs[email protected]/node_modules/@umijs/bundler-utils/compiled/tapable/index.js:1:7744), :24:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/Users/wuxh/Code/father-bug-report/node_modules/.pnpm/@umijs[email protected]/node_modules/@umijs/bundler-utils/compiled/tapable/index.js:1:4913)
at onCompiled (/Users/wuxh/Code/father-bug-report/node_modules/.pnpm/@umijs[email protected][email protected][email protected][email protected]/node_modules/@umijs/bundler-webpack/compiled/webpack/index.js:61952:21)
at /Users/wuxh/Code/father-bug-report/node_modules/.pnpm/@umijs[email protected][email protected][email protected][email protected]/node_modules/@umijs/bundler-webpack/compiled/webpack/index.js:62692:17
at Hook.eval [as callAsync] (eval at create (/Users/wuxh/Code/father-bug-report/node_modules/.pnpm/@umijs[email protected]/node_modules/@umijs/bundler-utils/compiled/tapable/index.js:1:7744), :15:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/Users/wuxh/Code/father-bug-report/node_modules/.pnpm/@umijs[email protected]/node_modules/@umijs/bundler-utils/compiled/tapable/index.js:1:4913)
at /Users/wuxh/Code/father-bug-report/node_modules/.pnpm/@umijs[email protected][email protected][email protected][email protected]/node_modules/@umijs/bundler-webpack/compiled/webpack/index.js:62688:33
at finalCallback (/Users/wuxh/Code/father-bug-report/node_modules/.pnpm/@umijs[email protected][email protected][email protected][email protected]/node_modules/@umijs/bundler-webpack/compiled/webpack/index.js:58974:11)
at /Users/wuxh/Code/father-bug-report/node_modules/.pnpm/@umijs[email protected][email protected][email protected][email protected]/node_modules/@umijs/bundler-webpack/compiled/webpack/index.js:59279:11
at Hook.eval [as callAsync] (eval at create (/Users/wuxh/Code/father-bug-report/node_modules/.pnpm/@umijs[email protected]/node_modules/@umijs/bundler-utils/compiled/tapable/index.js:1:7744), :6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/Users/wuxh/Code/father-bug-report/node_modules/.pnpm/@umijs[email protected]/node_modules/@umijs/bundler-utils/compiled/tapable/index.js:1:4913)
at /Users/wuxh/Code/father-bug-report/node_modules/.pnpm/@umijs[email protected][email protected][email protected][email protected]/node_modules/@umijs/bundler-webpack/compiled/webpack/index.js:59272:38
at eval (eval at create (/Users/wuxh/Code/father-bug-report/node_modules/.pnpm/@umijs[email protected]/node_modules/@umijs/bundler-utils/compiled/tapable/index.js:1:7744), :17:1)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
 ELIFECYCLE  Command failed with exit code 1.

@Wxh16144
Copy link
Member Author

Wxh16144 commented Aug 9, 2023

开发任务有点忙,不太确定是否是我配置问题还是 father 存在 bug, 没有深入 debug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant