Hi,
weweb support told me to ask this here.
I am experimenting with custom Elements and Sections and from the link inside the dev editor I found this GitHub - weweb-assets/plugin-dayjs.
The dev docs don’t mention Plugins but only Elements and Sections.
However you can actually add Plugins in the dashboard and I couldn’t resist the temptation .
In local development importing a plugin throws an error rendering the plugin unusable.
The error is generated here: webpack:///./src/wwLib/services/wwPluginHelper.js on line 87:
if (plugin.pluginCategory.name === 'auth') {
. The exception is: Cannot read properties of undefined (reading 'name')
.
I think that line should be: if (plugin.pluginCategory && plugin.pluginCategory.name === 'auth') {
Also you can actually import a plugin from github and add it to an app, but this breaks the app editor, with the same error, without the possibility to remove the plugin from the app. See this editor for an example Editor - WeWeb.
Support told me to ping @aurelie .
As a side note I am now testing an integration of Stripe Elements as a custom Element in weweb and have tips to share and questions to ask. Should we add a “Developer” category to this community?
Cheers
Mariano