Skip to content

DriverPackageNotInstalledError eror while the package is availible #26857

Open

Description

Current Behavior

I have a angular universal application that when it builds does some prerendering,
for that I spin up a NestJs server.

On the github actions I want to connect with sqlite / in memory db to make it easy to test
However I'm getting a DriverPackageNotInstalledError: SQLite package has not been found installed. Try to install it: npm install sqlite3 --save

but the sqlite3 is installed and even when I do a manuall install in the flow it still complains

failed build pipline: https://github.com/cskiwi/sqlite3-bug/actions/runs/9840319818/job/27164289616

Expected Behavior

That the build uses the installed sqlite3 package

GitHub Repo

https://github.com/cskiwi/sqlite3-bug

Steps to Reproduce

  1. clone the repo
  2. run the pipline

Nx Report

ode   : 21.7.2
OS     : win32-x64
bun    : 1.1.18

nx                 : 19.4.1
@nx/js             : 19.4.1
@nx/jest           : 19.4.1
@nx/linter         : 19.4.1
@nx/eslint         : 19.4.1
@nx/workspace      : 19.4.1
@nx/angular        : 19.4.1
@nx/devkit         : 19.4.1
@nx/eslint-plugin  : 19.4.1
@nx/nest           : 19.4.1
@nx/node           : 19.4.1
@nx/playwright     : 19.4.1
@nrwl/tao          : 19.4.1
@nx/web            : 19.4.1
@nx/webpack        : 19.4.1
typescript         : 5.4.5
---------------------------------------
Registered Plugins:
@nx/playwright/plugin
@nx/eslint/plugin
@nx/webpack/plugin
---------------------------------------
Community plugins:
@auth0/auth0-angular : 2.2.3
apollo-angular       : 7.0.2
ngxtension           : 3.5.5

Failure Logs

NX   Successfully ran target build for project api
Nx read the output from the cache instead of running the command for 1 out of 1 tasks.
Nx Cloud made it possible to reuse api: https://cloud.nx.app/runs/JUPy6QWYjC
Server build completed. Starting server...
Waiting for server 5351 to be ready on port 5000...
/home/runner/work/sqlite3-bug/sqlite3-bug/node_modules/typeorm/driver/sqlite/SqliteDriver.js:143
            throw new DriverPackageNotInstalledError_1.DriverPackageNotInstalledError("SQLite", "sqlite3");
            ^
DriverPackageNotInstalledError: SQLite package has not been found installed. Try to install it: npm install sqlite3 --save
    at SqliteDriver.loadDependencies (/home/runner/work/sqlite3-bug/sqlite3-bug/node_modules/typeorm/driver/sqlite/SqliteDriver.js:143:19)
    at new SqliteDriver (/home/runner/work/sqlite3-bug/sqlite3-bug/node_modules/typeorm/driver/sqlite/SqliteDriver.js:25:14)
    at DriverFactory.create (/home/runner/work/sqlite3-bug/sqlite3-bug/node_modules/typeorm/driver/DriverFactory.js:44:24)
    at new DataSource (/home/runner/work/sqlite3-bug/sqlite3-bug/node_modules/typeorm/data-source/DataSource.js:56:59)
    at Array.<anonymous> (/home/runner/work/sqlite3-bug/sqlite3-bug/dist/apps/api/main.js:392:20)
    at __webpack_require__ (/home/runner/work/sqlite3-bug/sqlite3-bug/dist/apps/api/main.js:803:41)
    at Object.defineProperty.value (/home/runner/work/sqlite3-bug/sqlite3-bug/dist/apps/api/main.js:284:22)
    at __webpack_require__ (/home/runner/work/sqlite3-bug/sqlite3-bug/dist/apps/api/main.js:803:41)
    at Object.defineProperty.value (/home/runner/work/sqlite3-bug/sqlite3-bug/dist/apps/api/main.js:187:18)
    at __webpack_require__ (/home/runner/work/sqlite3-bug/sqlite3-bug/dist/apps/api/main.js:803:41)

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

scope: nodeIssues related to Node, Express, NestJS support for Nxtype: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions