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

Windows platform, parseStack function didn't work as expected #225

Open
13OnTheCode opened this issue Aug 14, 2023 · 0 comments · May be fixed by #226
Open

Windows platform, parseStack function didn't work as expected #225

13OnTheCode opened this issue Aug 14, 2023 · 0 comments · May be fixed by #226

Comments

@13OnTheCode
Copy link

Environment

System:
OS: Windows 10 10.0.22621
CPU: (8) x64 Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
Memory: 15.60 GB / 31.94 GB

Binaries:
Node: 20.5.0 - ~\AppData\Local\pnpm\node.EXE
npm: 9.8.0 - ~\AppData\Local\pnpm\npm.CMD
pnpm: 8.6.12 - ~\AppData\Local\pnpm\pnpm.EXE

npmPackages:
consola: ^3.2.3 => 3.2.3

Reproduction

import { consola } from 'consola'

consola.error(new Error('test'))

result:
微信截图_20230814161705

expected:
微信截图_20230814161811

Describe the bug

The issue is likely caused by the Windows path separator, and the function doesn't handle it properly, resulting in it not working correctly on the Windows platform.

Additional context

No response

Logs

No response

13OnTheCode added a commit to 13OnTheCode/consola that referenced this issue Aug 14, 2023
@13OnTheCode 13OnTheCode linked a pull request Aug 14, 2023 that will close this issue
8 tasks
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

Successfully merging a pull request may close this issue.

1 participant