Skip to content

Commit 1f5550b

Browse files
committed
Add to all SP versions
1 parent 41a89a9 commit 1f5550b

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

content/en/docs/howto10/extensibility/pluggable-widgets/create-a-pluggable-widget-one.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ The generator will ask you a few questions during setup. Answer the questions by
8383
* Unit tests: **No**
8484
* End-to-end tests: **No**
8585

86+
{{% alert color="warning" %}}
87+
Currently, **Organization Name** cannot include a dash "-" character. Dashes in the organization name will result in an error when running your app, asking to check if the widgets "were generated with the latest version of the pluggable-widgets-tools and are ES6 modules."
88+
89+
To fix this in an existing widget, modify the `packagePath` property of its **package.json** file and rebuild the widget.
90+
{{% /alert %}}
91+
8692
{{< figure src="/attachments/howto10/extensibility/pluggable-widgets/create-a-pluggable-widget-one/generatorblack-new.png" alt="The Mendix Widget generator with the prompts answered according to the list above." class="no-border" >}}
8793

8894
As part of the widget scaffolding, the generator builds the widget for the first time. You can do this yourself by running `npm run build` inside your widget's directory.

content/en/docs/howto8/extensibility/pluggable-widgets/create-a-pluggable-widget-one.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,13 @@ The generator will ask you a few questions during setup. Answer the questions by
9797
* Unit tests: **No**
9898
* End-to-end tests: **No**
9999
100-
{{< figure src="/attachments/howto/extensibility/pluggable-widgets/create-a-pluggable-widget-one/generatorblack-new.png" alt="mx generator" class="no-border" >}}
100+
{{% alert color="warning" %}}
101+
Currently, **Organization Name** cannot include a dash "-" character. Dashes in the organization name will result in an error when running your app, asking to check if the widgets "were generated with the latest version of the pluggable-widgets-tools and are ES6 modules."
102+
103+
To fix this in an existing widget, modify the `packagePath` property of its **package.json** file and rebuild the widget.
104+
{{% /alert %}}
105+
106+
{{< figure src="/attachments/howto/extensibility/pluggable-widgets/create-a-pluggable-widget-one/generatorblack-new.png" alt="mx generator" class="no-border" >}}
101107
102108
Note that whenever it is required to reinstall NPM package dependencies inside the scaffolded widget development project with an NPM version of 7 or higher, make sure to run the installation script with an extra flag: `npm install --legacy-peer-deps`.
103109

content/en/docs/howto9/extensibility/pluggable-widgets/create-a-pluggable-widget-one.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,13 @@ The generator will ask you a few questions during setup. Answer the questions by
8585
* Unit tests: **No**
8686
* End-to-end tests: **No**
8787

88-
{{< figure src="/attachments/howto9/extensibility/pluggable-widgets/create-a-pluggable-widget-one/generatorblack-new.png" alt="mx generator" class="no-border" >}}
88+
{{% alert color="warning" %}}
89+
Currently, **Organization Name** cannot include a dash "-" character. Dashes in the organization name will result in an error when running your app, asking to check if the widgets "were generated with the latest version of the pluggable-widgets-tools and are ES6 modules."
90+
91+
To fix this in an existing widget, modify the `packagePath` property of its **package.json** file and rebuild the widget.
92+
{{% /alert %}}
93+
94+
{{< figure src="/attachments/howto9/extensibility/pluggable-widgets/create-a-pluggable-widget-one/generatorblack-new.png" alt="mx generator" class="no-border" >}}
8995

9096
Note that whenever it is required to reinstall NPM package dependencies inside the scaffolded widget development app with an NPM version of 7 or higher, make sure to run the installation script with an extra flag: `npm install --legacy-peer-deps`.
9197

0 commit comments

Comments
 (0)