dumi icon indicating copy to clipboard operation
dumi copied to clipboard

bug: Cannot read properties of undefined (reading 'directory')

Open steel-li opened this issue 1 year ago • 12 comments

Version

v2.3.8

OS Version

window11 22631.3672

Node.js Version

v20.14.0

Browser Version

Edge 125.0.2535.92

Link to minimal reproduction

None

Steps to reproduce

  1. mkdir tempDemo && cd tempDemo && npx create-dumi
  2. yarn add vue
  3. yarn add -D @dumijs/preset-vue
  4. yarn start

What is expected?

Can operate normally

What is actually happening?

yarn run v1.22.22 $ npm run dev

[email protected] dev dumi dev

info - dumi v2.3.8 info - Vue v3.4.27 fatal - TypeError: Cannot read properties of undefined (reading 'directory') at Hook.fn (F:\tempDemo\node_modules@dumijs\preset-vue\dist\common.js:42:91) at F:\tempDemo\node_modules@umijs\core\dist\service\service.js:136:38 at _next6 (eval at create (F:\tempDemo\node_modules@umijs\bundler-utils\compiled\tapable\index.js:1:8410), :85:17) at eval (eval at create (F:\tempDemo\node_modules@umijs\bundler-utils\compiled\tapable\index.js:1:8410), :110:1) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) fatal - A complete log of this run can be found in: fatal - F:\tempDemo\node_modules.cache\logger\umi.log fatal - Consider reporting a GitHub issue on https://github.com/umijs/umi/issues Done in 3.94s.

Any additional comments? (optional)

None

steel-li avatar Jun 10 '24 07:06 steel-li

+1

lifegit avatar Jul 29 '24 07:07 lifegit

may I ask how to solve this?

lifegit avatar Jul 29 '24 07:07 lifegit

may I ask how to solve this?

The previously fixed PR was rolled back due to a bug, so for now, let's define the repository in package.json and then close msfu

jeffwcx avatar Jul 29 '24 08:07 jeffwcx

may I ask how to solve this?

The previously fixed PR was rolled back due to a bug, so for now, let's define the repository in package.json and then close msfu

thank you. but i usage scenario is dumi. no existent msfu.

lifegit avatar Jul 29 '24 08:07 lifegit

https://d.umijs.org/config#mfsu

jeffwcx avatar Jul 29 '24 08:07 jeffwcx

I have tested it but it still failed: dumijs - mfsu

lifegit avatar Jul 29 '24 12:07 lifegit

I have tested it but it still failed: dumijs - mfsu

checkout this:https://github.com/jeffwcx/dumi-vue-demo

jeffwcx avatar Jul 29 '24 12:07 jeffwcx

thank you!

lifegit avatar Jul 29 '24 12:07 lifegit

@lifegit I will fix it as soon as possible

jeffwcx avatar Jul 29 '24 13:07 jeffwcx

@lifegit I will fix it as soon as possible

windows system is error: Path contains invalid characters: D:\project.dumi\tmp\plugin-preset-vue:vue3

fatal - Error: Path contains invalid characters: D:\project\.dumi\tmp\plugin-preset-vue:vue3
    at checkPath (D:\project\node_modules\.pnpm\@[email protected]\node_modules\@umijs\utils\compiled\fs-extra\index.js:1:15482)
    at e.exports.makeDirSync (D:\project\node_modules\.pnpm\@[email protected]\node_modules\@umijs\utils\compiled\fs-extra\index.js:1:15230)
    at Proxy.fn (D:\project\node_modules\.pnpm\@[email protected]_@[email protected][email protected][email protected][email protected]\node_modules\@umijs\preset-umi\dist\registerMethods.js:113:28)
    at Hook.fn (D:\project\node_modules\.pnpm\@[email protected][email protected][email protected][email protected][email protected]\node_modules\@dumijs\preset-vue\dist\vue\techStack\index.js:39:9)
    at D:\project\node_modules\.pnpm\@[email protected]\node_modules\@umijs\core\dist\service\service.js:184:26
    at _next17 (eval at create (D:\project\node_modules\.pnpm\@[email protected]\node_modules\@umijs\bundler-utils\compiled\tapable\index.js:1:8410), <anonymous>:51:18)
    at eval (eval at create (D:\project\node_modules\.pnpm\@[email protected]\node_modules\@umijs\bundler-utils\compiled\tapable\index.js:1:8410), <anonymous>:76:1) {
  code: 'EINVAL'
}
fatal - A complete log of this run can be found in:
fatal - D:\project\demos\node_modules\.cache\logger\umi.log
fatal - Consider reporting a GitHub issue on https://github.com/umijs/umi/issues

lifegit avatar Aug 02 '24 05:08 lifegit

@lifegit I will fix it as soon as possible

windows system is error: Path contains invalid characters: D:\project.dumi\tmp\plugin-preset-vue:vue3

fatal - Error: Path contains invalid characters: D:\project\.dumi\tmp\plugin-preset-vue:vue3
    at checkPath (D:\project\node_modules\.pnpm\@[email protected]\node_modules\@umijs\utils\compiled\fs-extra\index.js:1:15482)
    at e.exports.makeDirSync (D:\project\node_modules\.pnpm\@[email protected]\node_modules\@umijs\utils\compiled\fs-extra\index.js:1:15230)
    at Proxy.fn (D:\project\node_modules\.pnpm\@[email protected]_@[email protected][email protected][email protected][email protected]\node_modules\@umijs\preset-umi\dist\registerMethods.js:113:28)
    at Hook.fn (D:\project\node_modules\.pnpm\@[email protected][email protected][email protected][email protected][email protected]\node_modules\@dumijs\preset-vue\dist\vue\techStack\index.js:39:9)
    at D:\project\node_modules\.pnpm\@[email protected]\node_modules\@umijs\core\dist\service\service.js:184:26
    at _next17 (eval at create (D:\project\node_modules\.pnpm\@[email protected]\node_modules\@umijs\bundler-utils\compiled\tapable\index.js:1:8410), <anonymous>:51:18)
    at eval (eval at create (D:\project\node_modules\.pnpm\@[email protected]\node_modules\@umijs\bundler-utils\compiled\tapable\index.js:1:8410), <anonymous>:76:1) {
  code: 'EINVAL'
}
fatal - A complete log of this run can be found in:
fatal - D:\project\demos\node_modules\.cache\logger\umi.log
fatal - Consider reporting a GitHub issue on https://github.com/umijs/umi/issues

+++++1 demo不靠谱

ethan897 avatar Aug 14 '24 04:08 ethan897

遇到了同样的问题,请问这个 PR 什么时候会发版呢🤔?

LonelySnowman avatar Sep 22 '24 09:09 LonelySnowman