Why can't I reinstall my module after uninstall? With last beta version of Drupal 8, I have this error:


  Error message
  Unable to install Nature Theme - Structure and configuration, block.block.kyna_block_aboutus, block.block.kyna_block_blog_more_content, block.block.kyna_block_navbar, block.block.kyna_block_user_login, block.block.kyna_block_user_menu_account, field.field.node.article.field_kyna_article_slideshow, field.field.node.kyna_folio.body, field.field.node.kyna_folio.field_kyna_folio_client,
  [...]
  image.style.kyna_image_medium, node.type.kyna_folio, system.menu.kyna-navbar, taxonomy.vocabulary.kyna_client, views.view.kyna_blog, views.view.kyna_folio, views.view.kyna_home already exist in active configuration.


Why can't I reinstall my module? I don't have this error with previous version of Drupal 8 when I try to install my module after an uninstall.

How share my site configuration (block, field, view, etc.) without this problem please?
This is not so easy right now.

One way to do it is to put a forced dependency in those configurations, then they will be uninstalled together with a module. Core might even switch to doing that automatically, as I just discussed with @alexpott.

I'm not really sure how you are using that module. I have a feeling that is not what you want.


  How share my site configuration (block, field, view, etc.) without this problem please ?


Share how? With whom? Multiple separate sites, or dev/staging/production of the same site?

If the second, then do not use a module for this. Use the configuration staging folder and the configuration sync API/UI, that is designed to deal with updated default configuration.

If the first, keep in mind that default configuration is only designed for one use case: Initial default configuration when a module is installed for the first time. Modules are not meant to be re-installled to install updated configuration, the only way to do it like that would be first remove all the configuration and then create it again. That will not work for things like fields, because you will lose your data.