Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info

    @Tschitt I am getting the same error when I try to import a javascript plugin within my theme in Shopware v6.3.3.0 Stable Version:

    Uncaught SyntaxError: Cannot use import statement outside a module

    So looks like my main.js under custom/plugins/sw6-theme/src/Resources/app/storefront/src/main.js:

    // Import plugins
    import RvagTheme from './plugin/theme/theme.plugin';
    const PluginManager = window.PluginManager;
    PluginManager.register('RvagTheme', RvagTheme);

    And so my ./plugin/theme/theme.plugin.js:

    import Plugin from 'src/plugin-system/plugin.class';
    import deepmerge from 'deepmerge';
    export default class RvagTheme extends Plugin {
        static options = deepmerge(FilterBasePlugin.options, {
           // option variables
       init() {
          // init code

    After running a storefront:build still get the same error.

    Starting Execution of 'storefront:build' ('/Applications/.../dev-ops/storefront/actions/build.sh')
    (1/4) Starting
    > bin/console bundle:dump
         [OK] Dumped plugin configuration.                                              
    (2/4) Starting
    > PROJECT_ROOT=/Applications/.../  npm --prefix vendor/shopware/platform/src/Storefront/Resources/app/storefront/ run production
        > sw-next-storefront@1.0.0 production /Applications/.../vendor/shopware/platform/src/Storefront/Resources/app/storefront
        > NODE_ENV=production webpack --config webpack.config.js
        # Webpack Plugin Injector: Plugin "Storefront" injected as a new entry point
        # Webpack Plugin Injector: Plugin "RvagTheme" injected as a new entry point
        # Webpack Plugin Injector: Plugin "RvagGeneral" injected as a new entry point
        # Webpack Plugin Injector: Plugin "Ankauf" injected as a new entry point
        Browserslist: caniuse-lite is outdated. Please run next command `npm update`
        ℹ Compiling Shopware 6 Storefront
        ✔ Shopware 6 Storefront: Compiled successfully in 3.06s
           320 modules

    It looks like the plugin is being compiled and injected by Webpack (RvagTheme) but still on the frontend is occurring the same error:

    Uncaught SyntaxError: Cannot use import statement outside a module

    Has anybody already encountered and solved this error?

    John Wat
    Hello, i have a problem with the admin page. before i logged out, the admin page is working fine but after i try to login again the page is blank. Does anyone has same issues? thanks.
    Hello, I am having problem installing SHopware6
    any help? Thank you in advance.
    Bambhaniya Rajnik
    Hello I have one problem when I have created plugin but set the default value in config.xml. any help ?
    image.png i am trying to install shopware6 at WSL or ubunto. but this is the error. please help
    John Wat
    I am running './psh.phar administration:watch' command, but it stucks there. Since I am new to shopware, it makes me a bit confused and I can't find an explanation of the command I run. Does anyone want to explain what this command means? or is there any documentation about this command or the like?
    docker-compose build --parallel && docker-compose up -d
    hi, is there a simple way to increase "expires_in" value (Lifetime of Bearer Token) to a higher value?
    ShopWorks eCommerce
    Hi, first time in here! hope someone can help. SW6 transactional email template question. Our clients wants to get the manufacturer form the product in the order email. we are thinking of something like this.. maybe someone has a suggestion?
    i created but it doesnt refresh all config
    can anyone help me how to resolve this ??
    I'm going to get cms data from id on subscriber in shopware 6 plugin
    How can I get it?
    it is possible to have more than one order transaction for single order and how to check this?

    Is there a way to use upload file function in plugin config area.
    My payment plugin require a pem file to use in configuration.
    I tried with <component name="sw-media-upload-v2">

    <label>Upload pem file</label>
    Where I can find documentation how to use upload file, store the file in a specific plugin directory?
    Any examples/docs of how to work with uploaded files please.


    Hi guys, any one to help me to get this query running with DAL in shopware 6?

    SELECT od.articleordernumber , cc.countryname , SUM(od.quantity) FROM s_order_details AS od JOIN s_order AS o ON o.id = od.orderID JOIN s_order_shippingaddress AS os ON os.orderID = od.orderID JOIN s_core_countries AS cc ON cc.id = os.countryID WHERE DATE(o.ordertime) BETWEEN DATE_FORMAT(NOW() - INTERVAL 1 MONTH, '%Y-%m-01') AND LAST_DAY(NOW() - INTERVAL 1 MONTH) GROUP BY od.articleordernumber, cc.id;

    I've taken over some code which is using the following shopware API get query:
    I can't find documentation about it unfortunately. I need additional data from the order, i.e. the address country and salutation. Any help is greatly appreciated!
    Gunnar Polte
    @KennyH1 Hi Kenny, have you found a solution for it? I have a similiar error.
    Email templates at the admin are displayed with empty tables, all templates are at the database but not shown at admin's email template. any solution?
    I have problems with the product images on listing and product detail page.
    The images are loaded in full size on desktop view instead of the sizes in srcset.
    This causes a very bad page load time.
    Can anyone tell me how to extend or change the srcset to load the smaller images on desktop view?
    Test dbuglab
    Hello, i have created a plugin and a scheduled task under it, but my scheduled task(script) run for certain period of time, after some time it stop working and when it reactivate my plugin it again started working. Can anyone help me why this happening?
    Hi , I have edited the Email template for desktop and mobile view but while testing at gmail account its not showing the style (css) as designed but at yahoo its showing all css perfectly, can anyone tell how to make it compatible for Gmail and other domains.
    Vikramjit Singh Lehal
    Hi all, how to edit storefront contact form validation in shopware 6? I wana remove validation from some fields but could not find any helping doc. I know validation for few inputs fileds can be configured in admin but I don't wana do that. If anybody have an idea how to override contact form validation please help.
    Hi I am installing shopware on ubuntu following this documentation
    but i am getting above screen
    and when hit only localhost then i get his error there
    and right now i am unable to use my other PHP projects
    can anyone help me to resolve this issue. i am not getting help on google on this issue

    @komali_s_gitlab @/all
    Did you found a solution for your Problem from 2019?

    Fatal error: Uncaught Doctrine\ORM\Mapping\MappingException: No identifier/primary key specified for Entity "Shopware\Models\Attribute\Shop" sub class of "Shopware\Components\Model\ModelEntity". Every Entity must have an identifier/primary key. in /html/develop/rivolta/rivolta/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/MappingException.php:46 Stack trace: #0 /html/develop/rivolta/rivolta/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php(1009): Doctrine\ORM\Mapping\MappingException::identifierRequired('Shopware\Models...') #1 /html/develop/rivolta/rivolta/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(265): Doctrine\ORM\Mapping\ClassMetadataInfo->validateIdentifier() #2 /html/develop/rivolta/rivolta/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(245): Doctrine\ORM\Mapping\ClassMetadataFactory->validateRuntimeMetadata(Object(Doctrine\ORM\Mapping\ClassMetadata), NULL) #3 /html/develop/rivolta/rivolta/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/ in /html/develop/rivolta/rivolta/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/MappingException.php on line 46

    hmm anyone have experience getting Shopware 6 up in K8s? I'm trying to figure out issues with readiness/liveliness WRT APP_URL in the env
    This is the dead forum. I am sure I am on the wrong place
    Hello everyone :)
    Levon Atoyan
    Hey Guys.
    Take a look at our new plugin which will be available at the community store very soon.

    Hi Guys,

    I am facing a problem "The resource owner or authorization server denied the request" when i am using shopware api. can somebody know about that, How am i resolved this issue

    Hi everyone.
    how to resolve internal server 500 error: "controller has no container set, did you forget to define it as a service sybscriber?"....?