-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
typescript: defined tsconfig.json paths not consistent with reality #158
Comments
The error I get is:
For what its worth, I had the same problem using hardhat with dream2nix. This was a month or two back for me, so I don't remember precisely. But I added a blank import for the listed reference. here was my solution: https://github.com/tgunnoe/hardhat-flake/blob/master/flake.nix#L33-L54 I got your package to build with the following updated flake:
I realize this is a work around and there's a missing issue to be addressed in dream2nix. |
I think it has something to do with typescript or npm expecting only local references, and it receives references from outside of its local Also, you don't need to add FYI, I am porting a very similar ecosystem to nix using dream2nix and have mostly completed the prodedure. Working on runtimes and integration tests for it at the moment: https://github.com/bobanetwork/boba/blob/nix/flake.nix So feel free to message me on matrix! |
I have a wip package effort going on here:
https://github.com/input-output-hk/cardano-js-sdk/tree/dn2-wip
After working out several other issues during the build, I've reached a point where I keep getting strange type errors during the typescript compiler run. After digging into the node_modules folder, and looking through the various
tsconfig.json
of various dependencies, I've noticed that they have various path definitions point to non existent locations (inside the source derivation), meaning the compiler cannot find all the type definitions, meaning ultimately that the build fails.To reproduce one of the errors I'm seeing run:
nix build .\#@cardano-sdk/core -L
from that branch I linked above.As a concrete example of a bad path, you can enter the failed build's source derivation and cd into
node_modules/@bcoe/v8-coverage/tsconfig.json
and see it has the following defintion:But it's local
node_modules
folder is completely emptyThe text was updated successfully, but these errors were encountered: