Skip to content

Issues getting started #1058

@waalge

Description

@waalge

Summary

I had a few problems getting started. Long time since i've used yarn or done any serious ts work.

Opening up the repo, I notice not all packages are listed in the README. Not sure why.
Using nix, there's a dev environment. I would assume this means I can skip the "setup" step in the README.

But I can't see local imports

$yarn test
➤ YN0000: [@cardano-sdk/cardano-services]: Process started
➤ YN0000: [@cardano-sdk/cardano-services]: Error: Jest: Got error running globalSetup - /home/waalge/clones/cardano/cardano-js-sdk/packages/cardano-services/test/jest-setup/jest-setup.ts, reason: [TSError: test/jest-setup/jest-setup.ts:1:28 - error TS2307: Cannot find module '@cardano-sdk/util-dev' or its corresponding type declarations.

Doing yarn install does not resolve this.

The readme says I can run

$nix run .#config-update
warning: Git tree '/home/waalge/clones/cardano/cardano-js-sdk' is dirty
error: flake 'git+file:///home/waalge/clones/cardano/cardano-js-sdk' does not provide attribute 'apps.x86_64-linux.config-update', 'packages.x86_64-linux.config-update', 'legacyPackages.x86_64-linux.config-update' or 'config-update'

I don't remember how nixstd works wrt this, if I ever did know.

Steps to reproduce the bug

.

Actual Result

.

Expected Result

.

SDK version

69e4fe9

Environment type

  • Node.js
  • Browser
  • Browser Extension
  • Other

Environment details

nixos devshell

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions