'TypeError: Module should export a function: @vue/composition-api
When building the Shopware 6 PWA app based on NuxtJS, I always get the following error message:
TypeError: Module should export a function: @ vue / composition-api
Anyone here has an idea how to get it to work? Thanks in advance.
Solution 1:[1]
In nuxt.config.js make sure that your build module config is correct:
Do not forget the /module at the end of it.
buildModules: [
    '@nuxtjs/composition-api/module',
]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source | 
|---|---|
| Solution 1 | rebinnaf | 
