GithubHelp home page GithubHelp logo

Comments (6)

github-actions avatar github-actions commented on September 28, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs

from alchemy-sdk-js.

thebrianchen avatar thebrianchen commented on September 28, 2024

@elie222 Thanks for filing the bug report! We'll get to debugging this in the coming weeks.

from alchemy-sdk-js.

dphilipson avatar dphilipson commented on September 28, 2024

Hi @elie222 , I am looking into this. I would be interested in more information about your setup. A minimal example for me runs successfully.

To attempt to repro, I ran

mkdir repro
cd repro
npm init --yes
npm add alchemy-sdk jest
mkdir tests
echo 'it("imports alchemy-sdk", () => console.log(require("alchemy-sdk")));' > tests/index.test.js
npx jest

Doing so successfully runs the Jest test, importing alchemy-sdk and logging its contents to console.

In particular, I would be interested in how you are starting your Jest tests, if you're using any transpilers like Babel or TypeScript, and if you have any nondefault settings in your Jest config.

from alchemy-sdk-js.

elie222 avatar elie222 commented on September 28, 2024

from alchemy-sdk-js.

thebrianchen avatar thebrianchen commented on September 28, 2024

@elie222 Have you tried some of the steps from the discussion links on this SO post? This seems more like an issue with how next.js and jest are importing the modules, since the Alchemy SDK exports cjs, es, and esm dists in the final build.

from alchemy-sdk-js.

github-actions avatar github-actions commented on September 28, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs

from alchemy-sdk-js.

Related Issues (20)

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.