Code Monkey home page Code Monkey logo

Comments (3)

chocolateboy avatar chocolateboy commented on July 3, 2024
Error: Cannot find module 'source-map-support/register'

You need to install the source-map-support module:

In conjunction with the source-map-support module, which must be installed separately, this statement hooks into the v8 stack-trace API to translate call sites in the transpiled code back to their corresponding locations in the original code.

from babel-plugin-source-map-support.

chalda avatar chalda commented on July 3, 2024

ahh musta missed it. my bad. why not install that module as a dependency or at least indicate it as a peer?

from babel-plugin-source-map-support.

chocolateboy avatar chocolateboy commented on July 3, 2024

Babel runs at compile time, and the dependency is needed at runtime. In practice you'll usually be bundling source-map-support locally for development and disabling it for production, in which case it would make sense to peer-depend on it, but that's just a convention, not an intrinsic requirement of this plugin.

For example, a project could be compiled in one environment (source-map-support not needed), tested in a CI environment (source-map-support needed), and deployed to another (source-map-support not needed).

from babel-plugin-source-map-support.

Related Issues (6)

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.