Closed Mister-Hope closed 4 years ago
I'll close this issue as it's not a bug related to VuePress.
From what you're saying, your issue is related to your own development. Please open an issue to your own repository instead of VuePress.
If you can't figure out what's wrong with your repos. Feel free to reopen an issue if you're sure that the problem is related to VuePress
I'll close this issue as it's not a bug related to VuePress.
From what you're saying, your issue is related to your own development. Please open an issue to your own repository instead of VuePress.
If you can't figure out what's wrong with your repos. Feel free to reopen an issue if you're sure that the problem is related to VuePress
I think it is , at least there are conflicts, whatever I wrote, it's the smoth-scroll plugin falls with an error hint and no more details. I just want to ask how to debug to find out with line in the smoth-scroll plugin triggeres this error
Are you talking about this plugin? If it's the case, just remove it from your plugin list and just use smoothScroll
from VuePress config.
VuePress default theme is using this plugin to provide smooth scroll bro. :cry: It seems that you are not familar with this part
I spent a couple of hours, I create serveral repos, and I found something.
It seems sometime npm will generate a different tree, and put plugin-smooth-scroll under theme-default folder. That 100% cause the error I mentioned.
But the strange thing is when I run npm list
, plugin-smooth-scroll is only under theme-default, with no other version in the project.
When I dragged this folder out, the error disappeared.
This even happens when I removed my theme out of the package.json, so alt least there are some problems with the package or other packages. (Cause it happens without my theme and no configuration in .vuepress/config.js
)
I am working to find out the reason. I will leave a new comment if I figure out anything later.
P.S: Suggest you open this issue.
I really messed up, I use the same package.json and run npm install
in two folders, and I got a different result. The left one will cause the error I mentioned while the right one didn't
Would you mind I open a new issue about this?
Whoops, indeed it's using this plugin, I missed that 😉 Could you open a new clean issue following the issue template with the informations from your latest comments ? Thank you.
No problem. 😃 I just want someone give me a hand with it.
Also it would be great if you could provide a reproduction repos link
Sure, I am trying to make one
After update to version 1.2.0, I removed
smooth-scroll
from my own theme, and addsmoothScroll: true
in my themeConfig, and I saw an error.while the smoth scroll featrue doesn't work.
This error will disappear after I rolled back to V1.1.0, and enable it by my own.
I am curious about it. I think the reason is that I have build or wrote something conflict with it.
Now I am very confused, because this error seems to be trigged at @vuepress/core and I am not familar with it. And I also don't have any infomation about with file or which line caused this error.
In a word, I don't know where to start debuging my code..... :cry:
If anyone can provide me some helps or opinions how can I debug this error, I will be very grateful.