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

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

Open
steel-li opened this issue Jun 10, 2024 · 12 comments
Open

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

steel-li opened this issue Jun 10, 2024 · 12 comments
Assignees
Labels
bug Something isn't working

Comments

@steel-li
Copy link

steel-li commented Jun 10, 2024

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

@jeffwcx jeffwcx added bug Something isn't working and removed unconfirmed labels Jun 12, 2024
@jeffwcx jeffwcx mentioned this issue Jun 14, 2024
10 tasks
@lifegit
Copy link

lifegit commented Jul 29, 2024

+1

@lifegit
Copy link

lifegit commented Jul 29, 2024

may I ask how to solve this?

@jeffwcx
Copy link
Collaborator

jeffwcx commented Jul 29, 2024

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

@lifegit
Copy link

lifegit commented Jul 29, 2024

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.

@jeffwcx
Copy link
Collaborator

jeffwcx commented Jul 29, 2024

@lifegit
Copy link

lifegit commented Jul 29, 2024

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

@jeffwcx
Copy link
Collaborator

jeffwcx commented Jul 29, 2024

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

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

@lifegit
Copy link

lifegit commented Jul 29, 2024

thank you!

@jeffwcx
Copy link
Collaborator

jeffwcx commented Jul 29, 2024

@lifegit I will fix it as soon as possible

@lifegit
Copy link

lifegit commented Aug 2, 2024

@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

@ethan897
Copy link

@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不靠谱

@jeffwcx jeffwcx mentioned this issue Sep 20, 2024
10 tasks
@LonelySnowman
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants