You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\src\index.ts → dist/index.js...
[BABEL] Note: The code generator has deoptimised the styling of C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm\[email protected]\node_modules\lodash\lodash.js as it exceeds the max of 500KB.
(!) Circular dependencies
node_modules/.pnpm/[email protected]/node_modules/evtd/es/delegate.js -> node_modules/.pnpm/[email protected]/node_modules/evtd/es/traps.js -> node_modules/.pnpm/[email protected]/node_modules/evtd/es/delegate.js
src/dropdown/src/DropdownMenu.tsx -> src/dropdown/src/DropdownGroup.tsx -> src/dropdown/src/DropdownOption.tsx -> src/dropdown/src/DropdownMenu.tsx
src/menu/src/utils.tsx -> src/menu/src/MenuOptionGroup.tsx -> src/menu/src/utils.tsx
src/menu/src/utils.tsx -> src/menu/src/Submenu.tsx -> src/menu/src/utils.tsx
created dist/index.js in 12.2s
C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\src\index.ts → dist/index.prod.js...
[BABEL] Note: The code generator has deoptimised the styling of C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm\[email protected]\node_modules\lodash\lodash.js as it exceeds the max of 500KB.
(!) Circular dependencies
node_modules/.pnpm/[email protected]/node_modules/evtd/es/delegate.js -> node_modules/.pnpm/[email protected]/node_modules/evtd/es/traps.js -> node_modules/.pnpm/[email protected]/node_modules/evtd/es/delegate.js
src/dropdown/src/DropdownMenu.tsx -> src/dropdown/src/DropdownGroup.tsx -> src/dropdown/src/DropdownOption.tsx -> src/dropdown/src/DropdownMenu.tsx
src/menu/src/utils.tsx -> src/menu/src/MenuOptionGroup.tsx -> src/menu/src/utils.tsx
src/menu/src/utils.tsx -> src/menu/src/Submenu.tsx -> src/menu/src/utils.tsx
created dist/index.prod.js in 13.8s
C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\src\index.ts → dist/index.mjs...
[BABEL] Note: The code generator has deoptimised the styling of C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm\[email protected]\node_modules\lodash\lodash.js as it exceeds the max of 500KB.
(!) Circular dependencies
node_modules/.pnpm/[email protected]/node_modules/evtd/es/delegate.js -> node_modules/.pnpm/[email protected]/node_modules/evtd/es/traps.js -> node_modules/.pnpm/[email protected]/node_modules/evtd/es/delegate.js
src/dropdown/src/DropdownMenu.tsx -> src/dropdown/src/DropdownGroup.tsx -> src/dropdown/src/DropdownOption.tsx -> src/dropdown/src/DropdownMenu.tsx
src/menu/src/utils.tsx -> src/menu/src/MenuOptionGroup.tsx -> src/menu/src/utils.tsx
src/menu/src/utils.tsx -> src/menu/src/Submenu.tsx -> src/menu/src/utils.tsx
created dist/index.mjs in 9.8s
C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\src\index.ts → dist/index.prod.mjs...
[BABEL] Note: The code generator has deoptimised the styling of C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm\[email protected]\node_modules\lodash\lodash.js as it exceeds the max of 500KB.
(!) Circular dependencies
node_modules/.pnpm/[email protected]/node_modules/evtd/es/delegate.js -> node_modules/.pnpm/[email protected]/node_modules/evtd/es/traps.js -> node_modules/.pnpm/[email protected]/node_modules/evtd/es/delegate.js
src/dropdown/src/DropdownMenu.tsx -> src/dropdown/src/DropdownGroup.tsx -> src/dropdown/src/DropdownOption.tsx -> src/dropdown/src/DropdownMenu.tsx
src/menu/src/utils.tsx -> src/menu/src/MenuOptionGroup.tsx -> src/menu/src/utils.tsx
src/menu/src/utils.tsx -> src/menu/src/Submenu.tsx -> src/menu/src/utils.tsx
created dist/index.prod.mjs in 13.5s
node:internal/errors:496
ErrorCaptureStackTrace(err);
^
TypeError: C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\es\calendar\src\Calendar.js: The "path" argument must be of type string. Received undefined
at new NodeError (node:internal/errors:405:5)
at validateString (node:internal/validators:162:11)
at Object.join (node:path:429:7)
at guessFullPath (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\scripts\post-build\complete-path.js:162:27)
at parseSource (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\scripts\post-build\complete-path.js:145:9)
at PluginPass.ImportDeclaration (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\scripts\post-build\complete-path.js:21:38)
at newFn (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\traverse\lib\visitors.js:160:14)
at NodePath._call (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\traverse\lib\path\context.js:47:20)
at NodePath.call (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\traverse\lib\path\context.js:37:18)
at NodePath.visit (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\traverse\lib\path\context.js:83:31)
at TraversalContext.visitQueue (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\traverse\lib\context.js:89:16)
at TraversalContext.visitMultiple (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\traverse\lib\context.js:61:17)
at TraversalContext.visit (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\traverse\lib\context.js:110:19)
at traverseNode (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\traverse\lib\traverse-node.js:22:17)
at NodePath.visit (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\traverse\lib\path\context.js:89:52)
at TraversalContext.visitQueue (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\traverse\lib\context.js:89:16)
at TraversalContext.visitSingle (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\traverse\lib\context.js:65:19)
at TraversalContext.visit (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\traverse\lib\context.js:112:19)
at traverseNode (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\traverse\lib\traverse-node.js:22:17)
at traverse (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\traverse\lib\index.js:52:34)
at transformFile (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\core\lib\transformation\index.js:82:31)
at transformFile.next ()
at run (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\core\lib\transformation\index.js:24:12)
at run.next ()
at transform (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\core\lib\transform.js:22:33)
at transform.next ()
at step (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm\[email protected]\node_modules\gensync\index.js:261:32)
at C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm\[email protected]\node_modules\gensync\index.js:273:13
at async.call.result.err.err (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm\[email protected]\node_modules\gensync\index.js:223:11)
at C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm\[email protected]\node_modules\gensync\index.js:50:45
at step (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm\[email protected]\node_modules\gensync\index.js:287:14)
at C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm\[email protected]\node_modules\gensync\index.js:273:13
at async.call.result.err.err (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm\[email protected]\node_modules\gensync\index.js:223:11) {
code: 'ERR_INVALID_ARG_TYPE'
}
Node.js v18.20.2
遇到两个问题:
1.第一遍是测试 test 过不去
2.第二遍就是The "path" argument must be of type string. Received undefined
描述错误
./es/affix/src/styles
PS C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main> pnpm build:package
C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\src\index.ts → dist/index.js...
[BABEL] Note: The code generator has deoptimised the styling of C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm\[email protected]\node_modules\lodash\lodash.js as it exceeds the max of 500KB.
(!) Circular dependencies
node_modules/.pnpm/[email protected]/node_modules/evtd/es/delegate.js -> node_modules/.pnpm/[email protected]/node_modules/evtd/es/traps.js -> node_modules/.pnpm/[email protected]/node_modules/evtd/es/delegate.js
src/dropdown/src/DropdownMenu.tsx -> src/dropdown/src/DropdownGroup.tsx -> src/dropdown/src/DropdownOption.tsx -> src/dropdown/src/DropdownMenu.tsx
src/menu/src/utils.tsx -> src/menu/src/MenuOptionGroup.tsx -> src/menu/src/utils.tsx
src/menu/src/utils.tsx -> src/menu/src/Submenu.tsx -> src/menu/src/utils.tsx
created dist/index.js in 12.2s
C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\src\index.ts → dist/index.prod.js...
[BABEL] Note: The code generator has deoptimised the styling of C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm\[email protected]\node_modules\lodash\lodash.js as it exceeds the max of 500KB.
(!) Circular dependencies
node_modules/.pnpm/[email protected]/node_modules/evtd/es/delegate.js -> node_modules/.pnpm/[email protected]/node_modules/evtd/es/traps.js -> node_modules/.pnpm/[email protected]/node_modules/evtd/es/delegate.js
src/dropdown/src/DropdownMenu.tsx -> src/dropdown/src/DropdownGroup.tsx -> src/dropdown/src/DropdownOption.tsx -> src/dropdown/src/DropdownMenu.tsx
src/menu/src/utils.tsx -> src/menu/src/MenuOptionGroup.tsx -> src/menu/src/utils.tsx
src/menu/src/utils.tsx -> src/menu/src/Submenu.tsx -> src/menu/src/utils.tsx
created dist/index.prod.js in 13.8s
C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\src\index.ts → dist/index.mjs...
[BABEL] Note: The code generator has deoptimised the styling of C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm\[email protected]\node_modules\lodash\lodash.js as it exceeds the max of 500KB.
(!) Circular dependencies
node_modules/.pnpm/[email protected]/node_modules/evtd/es/delegate.js -> node_modules/.pnpm/[email protected]/node_modules/evtd/es/traps.js -> node_modules/.pnpm/[email protected]/node_modules/evtd/es/delegate.js
src/dropdown/src/DropdownMenu.tsx -> src/dropdown/src/DropdownGroup.tsx -> src/dropdown/src/DropdownOption.tsx -> src/dropdown/src/DropdownMenu.tsx
src/menu/src/utils.tsx -> src/menu/src/MenuOptionGroup.tsx -> src/menu/src/utils.tsx
src/menu/src/utils.tsx -> src/menu/src/Submenu.tsx -> src/menu/src/utils.tsx
created dist/index.mjs in 9.8s
C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\src\index.ts → dist/index.prod.mjs...
[BABEL] Note: The code generator has deoptimised the styling of C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm\[email protected]\node_modules\lodash\lodash.js as it exceeds the max of 500KB.
(!) Circular dependencies
node_modules/.pnpm/[email protected]/node_modules/evtd/es/delegate.js -> node_modules/.pnpm/[email protected]/node_modules/evtd/es/traps.js -> node_modules/.pnpm/[email protected]/node_modules/evtd/es/delegate.js
src/dropdown/src/DropdownMenu.tsx -> src/dropdown/src/DropdownGroup.tsx -> src/dropdown/src/DropdownOption.tsx -> src/dropdown/src/DropdownMenu.tsx
src/menu/src/utils.tsx -> src/menu/src/MenuOptionGroup.tsx -> src/menu/src/utils.tsx
src/menu/src/utils.tsx -> src/menu/src/Submenu.tsx -> src/menu/src/utils.tsx
created dist/index.prod.mjs in 13.5s
node:internal/errors:496
ErrorCaptureStackTrace(err);
^
TypeError: C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\es\calendar\src\Calendar.js: The "path" argument must be of type string. Received undefined
at new NodeError (node:internal/errors:405:5)
at validateString (node:internal/validators:162:11)
at Object.join (node:path:429:7)
at guessFullPath (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\scripts\post-build\complete-path.js:162:27)
at parseSource (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\scripts\post-build\complete-path.js:145:9)
at PluginPass.ImportDeclaration (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\scripts\post-build\complete-path.js:21:38)
at newFn (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\traverse\lib\visitors.js:160:14)
at NodePath._call (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\traverse\lib\path\context.js:47:20)
at NodePath.call (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\traverse\lib\path\context.js:37:18)
at NodePath.visit (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\traverse\lib\path\context.js:83:31)
at TraversalContext.visitQueue (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\traverse\lib\context.js:89:16)
at TraversalContext.visitMultiple (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\traverse\lib\context.js:61:17)
at TraversalContext.visit (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\traverse\lib\context.js:110:19)
at traverseNode (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\traverse\lib\traverse-node.js:22:17)
at NodePath.visit (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\traverse\lib\path\context.js:89:52)
at TraversalContext.visitQueue (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\traverse\lib\context.js:89:16)
at TraversalContext.visitSingle (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\traverse\lib\context.js:65:19)
at TraversalContext.visit (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\traverse\lib\context.js:112:19)
at traverseNode (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\traverse\lib\traverse-node.js:22:17)
at traverse (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\traverse\lib\index.js:52:34)
at transformFile (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\core\lib\transformation\index.js:82:31)
at transformFile.next ()
at run (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\core\lib\transformation\index.js:24:12)
at run.next ()
at transform (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm@babel [email protected]\node_modules@babel\core\lib\transform.js:22:33)
at transform.next ()
at step (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm\[email protected]\node_modules\gensync\index.js:261:32)
at C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm\[email protected]\node_modules\gensync\index.js:273:13
at async.call.result.err.err (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm\[email protected]\node_modules\gensync\index.js:223:11)
at C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm\[email protected]\node_modules\gensync\index.js:50:45
at step (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm\[email protected]\node_modules\gensync\index.js:287:14)
at C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm\[email protected]\node_modules\gensync\index.js:273:13
at async.call.result.err.err (C:\Users\徐家俊\Downloads\naive-ui-main\naive-ui-main\node_modules.pnpm\[email protected]\node_modules\gensync\index.js:223:11) {
code: 'ERR_INVALID_ARG_TYPE'
}
Node.js v18.20.2
遇到两个问题:
1.第一遍是测试 test 过不去
2.第二遍就是The "path" argument must be of type string. Received undefined
在macos下 会遇到 date-fns找不到 以及 lodash依赖问题
复现步骤
下载最新的包代码
执行pnpm build:package命令
最小复现链接
1
系统信息
使用的包管理器
pnpm
验证
The text was updated successfully, but these errors were encountered: