I build a simple plugin and it works fine for the frontend, however, I am trying to create a new menu in admin but the menu isn’t visible even after running the administration build command in Shopware 6.
Here are the file and code:
root_dir/custom/plugins/WebbytroopsShopFinder/src/Resources/app/administration/src/module/webbytroops-shopfinder/index.js
import enGB from './snippet/en-GB.json';
import deDE from './snippet/de-DE.json';
const {Module} = Shopware;
Module.register('webbytroops-shopfinder', {
type: 'plugin',
name: 'WebbytroopsShopFinder',
title: 'webbytroops-shopfinder.general.mainMenuItemGeneral',
description: 'webbytroops-shopfinder.general.descriptionTextModule',
version: '1.0.0',
targetVersion: '1.0.0',
color: '#9AA8B5',
icon: 'default-shopping-paper-bag',
snippets: {
'de-DE': deDE,
'en-GB': enGB
},
navigation: [{
id: 'wt-shopfinder',
label: 'webbytroops-shopfinder.menu.mainMenuItemGeneral',
color: '#ff3d58',
path: 'webbytroops.shopfinder.list',
icon: 'default-shopping-paper-bag-product',
position: 100
}],
});
root_dir/custom/plugins/WebbytroopsShopFinder/src/Resources/app/administration/src/main.js
import './module/webbytroops-shopfinder';
Executed this command
./bin/build-administration.sh
Even tried with watch command as well
./bin/watch-administration.sh
Can somebody help in finding the issue?
Thanks.