You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deployment fails with an error that Sqlite3 cannot be installed
The latest version uses node:18-alpine docker image on Fly.io. npm cannot install Sqlite3 and falls back to the source build. In this image, there is no Python available and the deployment fails.
I could not find a good fix for the problem, so I ended up forking @shopify/shopify-api, removing Sqlite3 from the library, and deploying it as a custom module dependency in my package.json.
We have now put session storage interfaces and implementations in their own package which you can find in this monorepo.
You can either use one of the many implementations we put there - including sqlite, but also postgres, mysql, redis, in memory, KV , or you can implement the interface that is exposed there and have your own custom implementation.
For that you'll need to update to our new version 6.0.2 of shopify-api-js (you can find it here.
Issue summary
The latest version uses node:18-alpine docker image on Fly.io. npm cannot install Sqlite3 and falls back to the source build. In this image, there is no Python available and the deployment fails.
I could not find a good fix for the problem, so I ended up forking @shopify/shopify-api, removing Sqlite3 from the library, and deploying it as a custom module dependency in my package.json.
This is not a long-term solution and I want to get back to a standard dependency as soon as possible.
Expected behavior
Successful deployment to Fly.io
Actual behavior
Deployment failed to Fly.io with the following exception message:
Steps to reproduce the problem
Specifications
Build triggered with flyctl v0.0.421 on MacOS X 12.6 M1
The text was updated successfully, but these errors were encountered: