Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@nx-extend/strapi No sqlite package #248

Closed
eyea opened this issue Apr 8, 2024 · 1 comment
Closed

@nx-extend/strapi No sqlite package #248

eyea opened this issue Apr 8, 2024 · 1 comment

Comments

@eyea
Copy link

eyea commented Apr 8, 2024

Error log

➜  org git:(main) ✗ npx nx run-many --target=serve

 NX   Running target serve for project strapi:

- strapi

————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

> nx run strapi:serve

Running:  yarn strapi develop --ignore-prompts
yarn run v1.22.21
$ strapi develop --ignore-prompts
[INFO] The Strapi admin needs to install the following dependencies:
   - react@^18.0.0
  - react-dom@^18.0.0
  - react-router-dom@^5.2.0
  - styled-components@^5.2.1
- Cleaning dist dir /Users/org/apps/strapi/dist
✔ Cleaning dist dir (3ms)
- Building build context
[INFO] Including the following ENV variables as part of the JS bundle:
    - ADMIN_PATH
    - STRAPI_ADMIN_BACKEND_URL
    - STRAPI_TELEMETRY_DISABLED
✔ Building build context (112ms)
- Creating admin
✔ Creating admin (5953ms)
- Loading Strapi
[ERROR]  There seems to be an unexpected error, try again with --debug for more information

┌──────────────────────────────────────────────────────────────────────────────┐│                                                                              ││   Error: No sqlite package found                                             ││   at getSqlitePackageName (/Users/org/node_modul   ││   es/@strapi/database/dist/index.js:5995:11)                                 ││   at createConnection (/Users/org/node_modules/@   ││   strapi/database/dist/index.js:6002:31)                                     ││   at new Database (/Users/org/node_modules/@stra   ││   pi/database/dist/index.js:6122:23)                                         ││   at Database.init (/Users/org/node_modules/@str   ││   api/database/dist/index.js:6106:16)                                        ││   at Strapi.bootstrap (/Users/org/node_modules/@   ││   strapi/strapi/dist/Strapi.js:372:39)                                       ││   at Strapi.load (/Users/org/node_modules/@strap   ││   i/strapi/dist/Strapi.js:426:16)                                            ││   at async Object.develop (/Users/org/node_modul   ││   es/@strapi/admin/dist/_chunks/index-sNH2VWbC.js:837:28)                    ││   at async develop (/Users/org/node_modules/@str   ││   api/admin/dist/_chunks/develop-YNTGWKMC.js:61:5)                           ││   at async Command.parseAsync (/Users/org/node_m   ││   odules/commander/lib/command.js:923:5)                                     ││   at async Module.runStrapiCommand (/Users/org/n   ││   ode_modules/@strapi/strapi/dist/commands/index.js:130:3)                   ││                                                                              │└──────────────────────────────────────────────────────────────────────────────┘
Done in 10.13s.

Env info:

➜  org git:(main) ✗ node -v
v18.19.0
➜  org git:(main) ✗ yarn -v
1.22.21

package.json:

{
  "name": "@org/source",
  "version": "0.0.0",
  "license": "MIT",
  "scripts": {},
  "private": true,
  "dependencies": {
    "next": "14.0.4",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "react-router-dom": "5.3.4",
    "styled-components": "5.3.3",
    "tslib": "^2.3.0"
  },
  "devDependencies": {
    "@nx-extend/strapi": "^9.0.2",
    "@nx/eslint": "18.2.3",
    "@nx/eslint-plugin": "18.2.3",
    "@nx/jest": "18.2.3",
    "@nx/js": "18.2.3",
    "@nx/next": "18.2.3",
    "@nx/workspace": "18.2.3",
    "@swc-node/register": "~1.8.0",
    "@swc/core": "~1.3.85",
    "@swc/helpers": "~0.5.2",
    "@types/jest": "^29.4.0",
    "@types/node": "18.16.9",
    "@types/react": "18.2.33",
    "@types/react-dom": "18.2.14",
    "@typescript-eslint/eslint-plugin": "^7.3.0",
    "@typescript-eslint/parser": "^7.3.0",
    "babel-jest": "^29.4.1",
    "eslint": "~8.57.0",
    "eslint-config-next": "14.0.4",
    "eslint-config-prettier": "^9.0.0",
    "eslint-plugin-import": "2.27.5",
    "eslint-plugin-jsx-a11y": "6.7.1",
    "eslint-plugin-react": "7.32.2",
    "eslint-plugin-react-hooks": "4.6.0",
    "jest": "^29.4.1",
    "jest-environment-jsdom": "^29.4.1",
    "nx": "18.2.3",
    "prettier": "^2.6.2",
    "ts-jest": "^29.1.0",
    "ts-node": "10.9.1",
    "typescript": "~5.4.2"
  }
}

package.json in /apps/strapi

{
  "name": "strapi",
  "private": true,
  "version": "0.1.0",
  "description": "A Strapi application",
  "scripts": {
    "develop": "strapi develop",
    "start": "strapi start",
    "build": "strapi build",
    "strapi": "strapi"
  },
  "devDependencies": {},
  "dependencies": {
    "@strapi/strapi": "4.20.3",
    "@strapi/plugin-users-permissions": "4.20.3",
    "@strapi/plugin-i18n": "4.20.3",
    "better-sqlite3": "8.6.0"
  },
  "author": {
    "name": "A Strapi developer"
  },
  "strapi": {
    "uuid": "f6745978-09cf-4783-9f38-202f49cd189b"
  },
  "engines": {
    "node": ">=18.0.0 <=20.x.x",
    "npm": ">=6.0.0"
  },
  "license": "MIT"
}

and use nx report:

➜  org git:(main) ✗ nx report

 NX   Report complete - copy this into the issue template

Node   : 18.19.0
OS     : darwin-arm64
yarn   : 1.22.21

nx (global)        : 18.0.5
nx                 : 18.2.3
@nx/js             : 18.2.3
@nx/jest           : 18.2.3
@nx/linter         : 18.2.3
@nx/eslint         : 18.2.3
@nx/workspace      : 18.2.3
@nx/devkit         : 18.2.3
@nx/eslint-plugin  : 18.2.3
@nx/next           : 18.2.3
@nx/react          : 18.2.3
@nrwl/tao          : 18.2.3
@nx/web            : 18.2.3
@nx/webpack        : 18.2.3
typescript         : 5.4.4
---------------------------------------
Registered Plugins:
@nx/next/plugin
@nx/jest/plugin
@nx/eslint/plugin
---------------------------------------
Community plugins:
@nx-extend/strapi : 9.0.2
@eyea
Copy link
Author

eyea commented Apr 8, 2024

omg. fixed..

update /apps/strapi devpendenies to the latest

  "dependencies": {
    "@strapi/strapi": "4.22.1",
    "@strapi/plugin-users-permissions": "4.22.1",
    "@strapi/plugin-i18n": "4.22.1",
    "better-sqlite3": "9.4.5"
  },

@eyea eyea closed this as completed Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant