System Information
- Strapi Version: 4.0.0-beta.22
- Operating System: Windows and DigitalOcean
- Database: mysql
- Node Version: >=12.x.x <=16.x.x
- NPM Version: >=6.0.0
- Yarn Version: —
I tried deploying Strapi on DigitalOcean using the following guide:
But the deployment fails due to:
I tried changing the packges.json to use node up until the 14. version, but it’s the same. I also changed the build commands to both the following:
yarn build
and
NODE_ENV=production npm run build
(also changed the run command there).
But I am getting the following error in the deployment:
Building your admin UI with production configuration …
[strapi-falu-app] [2022-02-06 22:32:53] Compiling Webpack
[strapi-falu-app] [2022-02-06 22:33:04] ModuleNotFoundError: Module not found: Error: Can’t resolve ‘@strapi/design-system/Carousel’ in ‘/workspace/node_modules/@strapi/plugin-upload/admin/src/components/MediaLibraryInput/Carousel’
[strapi-falu-app] [2022-02-06 22:33:04] at /workspace/node_modules/webpack/lib/Compilation.js:1765:28
[strapi-falu-app] [2022-02-06 22:33:04] at /workspace/node_modules/webpack/lib/NormalModuleFactory.js:730:13
and
[2022-02-06 21:45:52] Building your admin UI with production configuration …
[2022-02-06 21:45:54] Compiling Webpack
[2022-02-06 21:45:56] ModuleNotFoundError: Module not found: Error: Can’t resolve ‘@strapi/design-system/themes’ in ‘/workspace/.cache/admin/src’
[2022-02-06 21:45:56] at /workspace/node_modules/webpack/lib/Compilation.js:1765:28
[2022-02-06 21:45:56] at /workspace/node_modules/webpack/lib/NormalModuleFactory.js:730:13
My config:
{
"name": "xxxxx",
"private": true,
"version": "0.1.0",
"description": "A Strapi application",
"scripts": {
"develop": "strapi develop",
"start": "strapi start",
"build": "strapi build",
"strapi": "strapi"
},
"dependencies": {
"@strapi/design-system": "^0.0.1-alpha.74",
"@strapi/icons": "^0.0.1-alpha.74",
"@strapi/plugin-i18n": "4.0.0-beta.22",
"@strapi/plugin-users-permissions": "4.0.0-beta.22",
"@strapi/strapi": "4.0.0-beta.22",
"mysql": "2.18.1",
"pg-connection-string": "^2.5.0"
},
"author": {
"name": "A Strapi developer"
},
"strapi": {
"uuid": "fee69702-c9a1-489b-9403-84adbb3ab49e"
},
"engines": {
"node": ">=12.x.x <=16.x.x",
"npm": ">=6.0.0"
},
"license": "MIT"
}
Any ideas? This is driving me crazy. Thanks!