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]: Bugs related to version 1.18.1 startup #951

Closed
zhenghui-su opened this issue Apr 14, 2024 · 5 comments · Fixed by #1035
Closed

[Bug]: Bugs related to version 1.18.1 startup #951

zhenghui-su opened this issue Apr 14, 2024 · 5 comments · Fixed by #1035
Labels
🐞 bug Something isn't working

Comments

@zhenghui-su
Copy link

Version

Win10
node:16.15.0
rspress: 1.18.1
plugin: @rspress/plugin-shiki 1.18.1

Details

My version 1.17.1 can start, but when I update to 1.18.1, an error message will appear
image
image

Reproduce link

no link

Reproduce Steps

update Rspress 1.18.1 ,run pnpm run dev

@zhenghui-su zhenghui-su added the 🐞 bug Something isn't working label Apr 14, 2024
@zhenghui-su
Copy link
Author

zhenghui-su commented Apr 14, 2024

This error has nothing to do with Chinese
The reason should be that if the name attribute of _meta.json has a suffix like .io .json
a1de8baa4b482d3725010c3660cdd15

image

Here is a solution
If I add the md suffix, it will solve the problem
image

image

@Timeless0911
Copy link
Contributor

May I ask what the correspoding file name is?

@zhenghui-su
Copy link
Author

May I ask what the correspoding file name is?

like this
image

I just need to add the. md suffix to the name attribute of _meta.json to solve the problem
image

@Timeless0911
Copy link
Contributor

if (filename.indexOf('.') === -1) {

We detect the file path in this logic, it seems have a little problem in your case that file name already have a suffix similar to an extension.

@zhenghui-su
Copy link
Author

if (filename.indexOf('.') === -1) {

We detect the file path in this logic, it seems have a little problem in your case that file name already have a suffix similar to an extension.

Yes, that's the problem, so I solved it by adding a suffix to the name

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

Successfully merging a pull request may close this issue.

2 participants