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
New uibuilder - cannot remove bootstrap and bootstrap-vue #75
Comments
Well, they should be removable, so that should work! I will investigate, thanks for reporting. Not a critical bug of course since everything will carry on working just fine, simply remove the references from your front-end code. However, not efficient so I will certainly look to a fix. |
Stale issue message |
Still looking. Not currently top priority. |
still occuring, maybe not top priority for you but high priority for those who simply don't want to rely on boostrap / boostrap-vue |
I’m certainly not dismissing the issue. Just have limited time right now. Unless you are really tight for space, you can simply ignore them. It really makes no difference to your front end. I’m also happy to take PR to fix. |
Stale issue message |
I have the same issue and from what I found from the code - the issued |
@TotallyInformation i confirmed the fix for this issue! The fix is to remove vue & bootstrap-vue dependancies from "uibuilder" node module |
Good work @nileio , thanks for the update |
@nileio, many thanks for spending time looking at this. I've been tied up with COVID related work recently but that is hopefully calming down now. In fact, having VueJS and bootstrap-vue as dependencies does work for the core requirement - having them available for users out of the box. Bootstrap is a dependency in bootstrap-vue and so is installed automatically. However, you've spotted the nub of the problem I think. That they are dependencies of uibuilder itself and therefore I think the "fix" might be to trigger an installation of the packages post installation of uibuilder rather than having them as dependencies. That way, they will be added to the This shouldn't be too hard to do with a postinstall npm script. However, you would probably have to remove and reinstall uibuilder to pick up the change. Thoughts? |
@TotallyInformation thanks for response .. I think what you suggest as a postinstall script is a good solution. how do you see it working ? do you see this script running manually by the user? it might just be a matter of adding the info to run the script in the help section of the node , noting that if users like to try out the bundled vuejs/bootstrap-vue template to do that as an optional step .. |
Hi @nileio, thanks for your response. The script would run automatically, this is a feature of npm. Anything less would be a backward step from the current features as there are many people who would use uibuilder to get started on building their own data-driven UI. So uibuilder should "just work" out of the box. Just as it does today. Don't forget that this is really only fixing a problem that few people ever hit or worry about. The bundling of bootstrap-vue is done for the same reason. It makes it trivially easy to create a reasonable looking data-driven UI with minimal effort. |
@TotallyInformation in this case postinstall script might be the solution and being backward compatible too is great.. |
Can you expand on that, I don't quite understand I'm afraid. There is already a Socket.IO server.
Yes, I have started to prepare for that (the current default template code is in a VueJS sub-folder) but it is pretty low down the list of things to do. |
Code for this change is now pushed to the security build. Please do try it out. Note that, at present, I have not added any clever code to remove the old installations of vue and bootstrap-vue. If you want to get them into the right place, shut down Node-RED, manually remove and re-add uibuilder from the security branch. Note that you don't need to do anything unless you want to be able to remove |
my apology for late response been away from tinkering with nodered for a bit..
Thanks for working on this issue. Is this now merged to master ? I recently updated to latest uibuilder version. |
No, sorry, it is quite a major change to the way that uibuilder works for users and therefore will be included in the next full release (which is in the security branch as indicated). |
Stale issue message |
The fix for this is part of uibuilder v3 which should be published in the next few weeks. Closing this now. |
Issue
Cannot remove bootstrap and bootstrap-vue
Reproduce
Drag a ui-builder node to the flow window.
Doubleclick uibuilder node, click "Manage front-end libraries", click 'X' for both
bootstrap
andbootstrap-vue
What should happen ?
bootstrap and bootstrap-vue should be removed
What actually happens:
debug error
Remark
If they cannot be removed, do not show them in the list. Possibly applies to vue as well.
System
The text was updated successfully, but these errors were encountered: