Coder Social home page Coder Social logo

issue-knex-pg-streams-yarn3's Introduction

Knex Postgres Streams + Yarn3 Workspaces

This repo serves as a minimal reproduction for the following issue: knex/knex#5542

Steps to reproduce:

  1. Install dependencies

  2. Install yarn packages:

    yarn install
    
  3. Start postgres server:

    yarn start:pg
    
  4. Run example:

    cd ./apps/example
    yarn start
    

Expected Error:

node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: knex tried to access pg-query-stream, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.

Required package: pg-query-stream
Required by: knex@virtual:560696f833017658981ba6f8d5f48110004949ef7413e18d74c3876da0e873de7bd4ac12b20e876a43bb2113243cacd6042960e956fba8e458ecaa6347d699a1#npm:2.4.2 (via C:\Users\liama\Projects\knex-streams\.yarn\__virtual__\knex-virtual-01c6f15313\0\cache\knex-npm-2.4.2-a7caf35691-cfb6436c0e.zip\node_modules\knex\lib\dialects\postgres\)

Require stack:
- C:\Users\liama\Projects\knex-streams\.yarn\__virtual__\knex-virtual-01c6f15313\0\cache\knex-npm-2.4.2-a7caf35691-cfb6436c0e.zip\node_modules\knex\lib\dialects\postgres\index.js
- C:\Users\liama\Projects\knex-streams\.yarn\__virtual__\knex-virtual-01c6f15313\0\cache\knex-npm-2.4.2-a7caf35691-cfb6436c0e.zip\node_modules\knex\lib\dialects\index.js
- C:\Users\liama\Projects\knex-streams\.yarn\__virtual__\knex-virtual-01c6f15313\0\cache\knex-npm-2.4.2-a7caf35691-cfb6436c0e.zip\node_modules\knex\lib\knex-builder\internal\config-resolver.js
- C:\Users\liama\Projects\knex-streams\.yarn\__virtual__\knex-virtual-01c6f15313\0\cache\knex-npm-2.4.2-a7caf35691-cfb6436c0e.zip\node_modules\knex\lib\knex-builder\Knex.js
- C:\Users\liama\Projects\knex-streams\.yarn\__virtual__\knex-virtual-01c6f15313\0\cache\knex-npm-2.4.2-a7caf35691-cfb6436c0e.zip\node_modules\knex\lib\index.js
- C:\Users\liama\Projects\knex-streams\.yarn\__virtual__\knex-virtual-01c6f15313\0\cache\knex-npm-2.4.2-a7caf35691-cfb6436c0e.zip\node_modules\knex\knex.js
- C:\Users\liama\Projects\knex-streams\apps\example\index.js
    at Function.require$$0.Module._resolveFilename (C:\Users\liama\Projects\knex-streams\.pnp.cjs:9404:13)
    at Function.require$$0.Module._load (C:\Users\liama\Projects\knex-streams\.pnp.cjs:9254:42)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Client_PG._stream (C:\Users\liama\Projects\knex-streams\.yarn\__virtual__\knex-virtual-01c6f15313\0\cache\knex-npm-2.4.2-a7caf35691-cfb6436c0e.zip\node_modules\knex\lib\dialects\postgres\index.js:192:9)
    at Client_PG.stream (C:\Users\liama\Projects\knex-streams\.yarn\__virtual__\knex-virtual-01c6f15313\0\cache\knex-npm-2.4.2-a7caf35691-cfb6436c0e.zip\node_modules\knex\lib\client.js:151:17)
    at ensureConnectionStreamCallback (C:\Users\liama\Projects\knex-streams\.yarn\__virtual__\knex-virtual-01c6f15313\0\cache\knex-npm-2.4.2-a7caf35691-cfb6436c0e.zip\node_modules\knex\lib\execution\internal\ensure-connection-callback.js:26:26)
    at Runner.ensureConnection (C:\Users\liama\Projects\knex-streams\.yarn\__virtual__\knex-virtual-01c6f15313\0\cache\knex-npm-2.4.2-a7caf35691-cfb6436c0e.zip\node_modules\knex\lib\execution\runner.js:300:20)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

issue-knex-pg-streams-yarn3's People

Contributors

liamattclarke avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.