HiDeoo / starlight-blog

Starlight plugin to add a blog to your documentation
https://starlight-blog-docs.vercel.app
MIT License
159 stars 21 forks source link

An error " Cannot read properties of undefined (reading 'endsWith')" occurs when i run build #12

Closed aswind7 closed 1 year ago

aswind7 commented 1 year ago

Describe the bug

error Cannot read properties of undefined (reading 'endsWith') File: nodemodules/.pnpm/starlight-blog@0.2.1@astrojs+starlight@0.9.1_astro@3.0.8/node_modules/starlight-blog/Tags.astro Stacktrace: TypeError: Cannot read properties of undefined (reading 'endsWith')

To Reproduce

with these pkgs of version:

"@astrojs/starlight": "^0.9.1", "astro": "^3.0.6", "starlight-blog": "^0.2.1"

run

pnpm run build

Expected behavior

Build Successful

How often does this bug happen?

Every time

System Info

macos;

Additional Context

No response

HiDeoo commented 1 year ago

Thanks for your report. This error should have been fixed in the latest version (v0.3.2) and it looks like you are using v0.2.1.

I assume an update of the starlight-blog package on your end should fix it so I'm going to close this but feel free to say if it's not the case so I can re-open the issue.

aswind7 commented 1 year ago

Thanks for your report. This error should have been fixed in the latest version (v0.3.2) and it looks like you are using v0.2.1.

I assume an update of the starlight-blog package on your end should fix it so I'm going to close this but feel free to say if it's not the case so I can re-open the issue.

Thanks for yours reply! I have done as you said and eventually it worked! You are so nice man, thank you again.👍