-
Notifications
You must be signed in to change notification settings - Fork 2
Fix vue-remark incompatibility #33
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
base: master
Are you sure you want to change the base?
Fix vue-remark incompatibility #33
Conversation
|
@mklueh Would you give this a look? |
|
Hi @JuroOravec , thanks for your pull request, very much appreciated. I'm not exactly sure what these two lines do, but hats off if they enable vue-remark support😊 Could you help me out with your setup or at best enhance the example if you don't mind? I'm running into this error: with this config and this template BlogPostRemark.vue Thanks |
|
Hey @mklueh
|
|
Hi @JuroOravec , I see. But I'm a little bit confused now. What do you mean with
Do you have the error too that I'm getting or have you managed to get your change working with vue-remark? I've checked out your branch and tried to get it working and I wanted to add another example usage to the project. The code I've posted here is not yet committed, but I think it would make sense in case the change is working. |
I mean that I don't know why
No. Things are working for me when I run the example locally. See the screenshots at the bottom of this post.
I think it would be simpler to do things in steps - first merge the fix, then add the example (or other way around). That being said tho, I might've found the issue with your example 2. Notice how in the original example I changed the imports. I changed this so the example is using the local version of the plugin, not the version released to NPM. |
|
Okay, got it. However, I'm usually using the link.sh script which links the local version and uses that instead of the one of the NPM. This should not have been the problem. I've checked out the latest commit of yours and I'm facing the same issue. Agree with keeping the request small and clean, but I'd like to ensure that it is working, and we don't have any tests and it's a bit too tricky to write any. Therefore the example would be perfect and not too hard to add. Just a copy of the existing, under a different route, that is using vue-remark instead. Just curious, have you tested it in your real project or do you also have a demo setup for it? Can you share how you test it? |
This reverts commit e9be4b3.
|
@mklueh Thanks, didn't notice the It's still working on my side. I've tried it with both
Could you try the same? |
|
And yes, I'm using it in a real project. In my project, I've copied the My project is heavily customized, so it might be harder to follow (I'm using TypeScript for Nevertheless, this is how I use the recommender plugin:
Lastly, this is how it looks when in the UI: |
Hi @JuroOravec , I've tried that but failed on npm run build with the same error. There might be one more difference: I'm running my web projects in WSL2 Ubuntu, not on my local machine. Not sure if this may be related. Otherwise, if I disable the recommender plugin, the vue-remark config is working. I've tried to debug into the build process, but I'm running into an issue of WebStorm related to WSL2 https://youtrack.jetbrains.com/issue/WEB-49296 |
|
Thought I'd chip in and say that I'm seeing the same issue and this PR does indeed fix the issue. For those who are also seeing this issue, until this is merged, you can pull from @JuroOravec's branch by updating your package.json file to use |



This resolves the issue from #5.
The change feels more like a bandaid than fixing the root cause, but the app builds fine, and I haven't noticed any issue in any of the modes (explore / develop / build), so it's good enough.