-
Notifications
You must be signed in to change notification settings - Fork 12
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
Callback was already called #6
Comments
This issue seems to have been fixed by my PR #5 . If you want to give it a try on your site, you can use this command:
|
@claycarpenter thanks, but... Am I missing something?
|
Now it worked. I changed the contents manually and it worked. |
@franklinjavier great! I was just going to reply that I couldn't replicate the error and suggest you make the changes manually. Glad to hear it's working for you. |
🍻 |
@claycarpenter every time I save a file, duplicates the quantity of posts. |
@franklinjavier As far as I can tell right now, this looks like an issue with metalsmith-collections when it's run multiple times without a fresh Metalsmith build. It's late and I'm sleepy and stupid, but it looks like the ms-collections plugin adds the matching files it finds to the global (Metalsmith) metadata each time it's run. I made a very quick hack that fixed the problem by clearing out the metadata.posts collection before each metalsmith-collections run. The "plugin" looks like this:
And should be inserted before the metalsmith-collections plugin in the pipeline. I'm not saying this is a smart hack, but it should get you going for the time being. Considering this issue probably isn't the fault of this metalsmith-browser-sync plugin, we should probably move the conversation over to your repo if you want to continue. |
Thanks for the solution. |
When I try to use browserSync, I'm getting this error
This is my index.js
Any suggestions to fix it?
Cheer
The text was updated successfully, but these errors were encountered: