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

NanoSQL not working with Rollup #84

Closed
ansarizafar opened this issue Sep 12, 2018 · 5 comments
Closed

NanoSQL not working with Rollup #84

ansarizafar opened this issue Sep 12, 2018 · 5 comments

Comments

@ansarizafar
Copy link

I am trying to use NanoSQL with Rolup (https://github.com/sveltejs/sapper-template/tree/rollup) but I am getting following error when importing NanoSQl. Here is my code

const nSQL = require("nano-sql").nSQL;

Here is the stack trace

Circular dependency: ../webeo/node_modules/readable-stream/lib/_stream_readable.js -> ../webeo/node_modules/readable-stream/lib/_stream_duplex.js -> ../webeo/node_modules/readable-stream/lib/_stream_readable.js
Circular dependency: ../webeo/node_modules/readable-stream/lib/_stream_duplex.js -> ../webeo/node_modules/readable-stream/lib/_stream_writable.js -> ../webeo/node_modules/readable-stream/lib/_stream_duplex.js
Circular dependency: ../webeo/node_modules/readable-stream/lib/_stream_duplex.js -> ../webeo/node_modules/readable-stream/lib/_stream_writable.js -> commonjs-proxy:/home/zafar/projects/framework/webeo/node_modules/readable-stream/lib/_stream_duplex.js -> ../webeo/node_modules/readable-stream/lib/_stream_duplex.js
Circular dependency: ../webeo/node_modules/readable-stream/lib/_stream_readable.js -> ../webeo/node_modules/readable-stream/lib/_stream_duplex.js -> commonjs-proxy:/home/zafar/projects/framework/webeo/node_modules/readable-stream/lib/_stream_readable.js -> ../webeo/node_modules/readable-stream/lib/_stream_readable.js
Circular dependency: ../webeo/node_modules/nano-sql/lib/index.js -> ../webeo/node_modules/nano-sql/lib/database/index.js -> ../webeo/node_modules/nano-sql/lib/index.js
Circular dependency: ../webeo/node_modules/nano-sql/lib/index.js -> ../webeo/node_modules/nano-sql/lib/database/index.js -> ../webeo/node_modules/nano-sql/lib/database/query.js -> ../webeo/node_modules/nano-sql/lib/index.js
Circular dependency: ../webeo/node_modules/nano-sql/lib/index.js -> ../webeo/node_modules/nano-sql/lib/database/index.js -> ../webeo/node_modules/nano-sql/lib/database/query.js -> commonjs-proxy:/home/zafar/projects/framework/webeo/node_modules/nano-sql/lib/index.js -> ../webeo/node_modules/nano-sql/lib/index.js
> Server crashed
TypeError [ERR_INVALID_ARG_TYPE]: The "superCtor" argument must be of type Function. Received type undefined
    at Object.inherits (util.js:1233:11)
    at Object.<anonymous> (/home/zafar/projects/framework/sapper-rollup/.sapper/dev/server.js:36552:8)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
    at startup (internal/bootstrap/node.js:266:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:596:3)

Here is a link of a related issue nodejs/readable-stream#348

@only-cliches
Copy link
Owner

The current architecture will make it pretty difficult to solve these circular references, adding this to the 2.0 milestone.

@only-cliches only-cliches added this to the 2.0 Release milestone Sep 25, 2018
@ansarizafar
Copy link
Author

Is there any timeline/ETA for Version 2.0 release?

@only-cliches
Copy link
Owner

Probably around the end of the year at this rate.

@only-cliches
Copy link
Owner

@nano-sql/core 2.0.0-rc17 is tested and working with rollup.

@only-cliches
Copy link
Owner

2.0 has been released and is working with rollup, this issue is resolved.

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

No branches or pull requests

2 participants