Giter Club home page Giter Club logo

Comments (4)

krigga avatar krigga commented on July 30, 2024

After a long string of investigation, I found the underlying issue: it's the fact that jest installs source-map-support when running tests, but the compile function from blueprint registers ts-node (to import .ts files), which installs source-map-support of its own, and they seem to be conflicting with each other, messing with the source maps.

One way to fix it as I see it (there could be others) is to turn off the source-map-support of ts-node, and there's a pending issue for that: TypeStrong/ts-node#796

I might submit a PR to ts-node to fix it, which will in turn allow to fix this.

from blueprint.

behrang avatar behrang commented on July 30, 2024

Thanks. Is there any workaround for now?

from blueprint.

krigga avatar krigga commented on July 30, 2024

There kind of is, but it's really more of a hack than anything else, and might (probably will) mess with your source maps elsewhere. However if it's only tests that matter, you can open node_modules/ts-node/dist/index.js and comment out the line that installs source map support (ctrl+f sourcemap should do the trick), but once again, this is a major hack and is very likely to mess with your source maps in things other than tests (deploy scripts etc.)

from blueprint.

behrang avatar behrang commented on July 30, 2024

Thanks, it worked.

from blueprint.

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.