Renovamen / vuepress-theme-gungnir

A blog theme for VuePress 2.
https://v2-vuepress-theme-gungnir.vercel.app
Apache License 2.0
353 stars 79 forks source link

fix: file does not exist #56

Closed izhaong closed 2 years ago

izhaong commented 2 years ago

fixed these: error client file does not exist: */vuepress-theme-gungnir/packages/theme/src/client/clientAppEnhance.js error error in hook clientAppEnhanceFiles from vuepress-theme-gungnir

Related ISSUE

Input follow ISSUE URL address

Type Of Change

Clear Describe

A clear and concise description of what update for target.

Description

Please enter detailed relevant motivation, background and implementation ... descriptive information.

Test Case

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test case.

vercel[bot] commented 2 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

v2-vuepress-theme-gungnir – ./

🔍 Inspect: https://vercel.com/renovamen/v2-vuepress-theme-gungnir/E9nfX35iog3WT9UcFVz2tDLWAsYK
✅ Preview: Failed

vuepress-theme-gungnir – ./

🔍 Inspect: https://vercel.com/renovamen/vuepress-theme-gungnir/BVYMHpYuKcTxSJh7NXCnqeF39jsh
✅ Preview: Failed

Renovamen commented 2 years ago

Hi, I think the file paths here should be ../client/xxx.js, since these paths are referred to the compiled .js files (will be generated in packages/theme/lib after running yarn dev or yarn build) instead of .ts files. Thus making such changes would cause "file does not exist" errors (as you can see: Vercel – v2-vuepress-theme-gungnir — Deployment has failed).

izhaong commented 2 years ago

这次可真是丢人丢到家了 跑到vuepress仓库提了这个pr 已经知道问题答案了😂😂😂