When trying to deploy to heroku, I get an Module not found error like below:
remote: ModuleNotFoundError: Module not found: Error: Can't resolve './Client' in '/tmp/build_#/node_modules/@shopify/app-bridge/actions'
I've updated and reinstalled to the latest version of the package.
Contextual information
Packages and versions
List the relevant packages you’re using, and their versions. For example:
@shopify/app-bridge @ 2.0.3
@shopify/app-bridge-react @ 2.0.3
@shopify/polaris @ 6.5.0
Platform
OS: MacOS for development, Linux on Heroku
Additional context
Found this related to the bug:
This error is almost always encountered here because the casing of the module's filename does not match what is committed to git. On our local computers (macOS & Windows) the system is case insensitive, but the Linux OS of Heroku is case sensitive.
Describe the bug
When trying to deploy to heroku, I get an Module not found error like below:
remote: ModuleNotFoundError: Module not found: Error: Can't resolve './Client' in '/tmp/build_#/node_modules/@shopify/app-bridge/actions'
I've updated and reinstalled to the latest version of the package.
Contextual information
Packages and versions
List the relevant packages you’re using, and their versions. For example:
@shopify/app-bridge
@2.0.3
@shopify/app-bridge-react
@2.0.3
@shopify/polaris
@6.5.0
Platform
Additional context
Found this related to the bug: