- Issue created by @newpathdev
Getting a front-end error with JSON request when I try to add new entity of paragraph type containing a field of type icon. This is what I get in error log:
TypeError: Drupal\Core\Extension\ExtensionPathResolver::getPath(): Argument #1 ($type) must be of type string, null given, called in /var/www/html/web/modules/contrib/svg_icon_field/src/StaticIcons.php on line 88 in Drupal\Core\Extension\ExtensionPathResolver->getPath() (line 84 of /var/www/html/web/core/lib/Drupal/Core/Extension/ExtensionPathResolver.php).
1. Create a custom paragraph type
2. Use a field of type icon provided by this module in the paragraph fields.
3. In any content type, add a field of type paragraph, and allow your new custom paragraph type to be referenced.
4. Add a new content of your content type, and try adding paragraph entity of the type you created.
Active
Code