Reputation: 43
I have a Shopware app I would like to submit to the store. The app uses some third party node modules (socket-io). However whenever I build the javascript, the compiled file in the dist folder of the app does not include my dependencies. When installing this app to a store I get the following error:
Uncaught TypeError: Cannot read properties of undefined (reading 'call')
Locally running bin/build-storefront.sh
with the app activated fixes the issue, but not by including the dependecy javascript in the compiled js in my app's dist folder. I guess it includes it in the main shopware js file.
How can I have the node modules included properly?
I found the below issue which seems to be the same: https://issues.shopware.com/issues/NEXT-15942
Upvotes: 0
Views: 367