Code Monkey home page Code Monkey logo

Comments (5)

monounity avatar monounity commented on June 18, 2024 1

Great, I'll try to reproduce the bug!

from karma-typescript.

monounity avatar monounity commented on June 18, 2024

@Duskfall, do you have the package source-map in the node_modules folder? It looks like it doesn't get pulled in by npm. Also could you post your karma config here? Thanks :)

from karma-typescript.

Duskfall avatar Duskfall commented on June 18, 2024

@monounity Yes I have both source-map and source-map-support in node_modules!

karma.conf:

module.exports = function (config) {
    config.set({
        basePath: './',
        files: [
            './Scripts/Libs/angular/angular.min.js',
            './Scripts/Libs/angular-mocks/angular-mocks.js',
            './Scripts/**/**.ts',
            './Scripts/UnitTests/Tests/Controllers/**.ts',
            './Scripts/UnitTests/Tests/Services/**.ts'
        ],
        exclude: [],
        frameworks: [
            "jasmine", "karma-typescript"
        ],
        reporters: ['progress'],
        karmaTypescriptConfig: {
            reports:
            {
                "html": "coverage",
                "teamcity": "coverage",
            },
            remapOptions:
            {
                // Regex or string for excluding files, the example below is default
                exclude: /(typings|Interfaces|Libs)/,
                // Function for warning messages, these warnings are silent by default
                warn: function (message) { }
            }
        },
        preprocessors: {
            "**/*.ts": ["karma-typescript"]
        },
        browsers: ['Chrome'],
        autoWatch: true,
        singleRun: false,
    });
};

I also give you the file structure with the node_modules loaded:

[tree.txt](https://github.com/monounity/karma-typescript/files/476273/tree.txt)

from karma-typescript.

monounity avatar monounity commented on June 18, 2024

I can reproduce the problem and it looks like an older version of source-map gets pulled in by another package. Does the problem go away if you install it manually, ie npm install source-map?

If so, I'll fix the problem by adding the dependencies for the bundled version of remap-istanbul package.json.

from karma-typescript.

Duskfall avatar Duskfall commented on June 18, 2024

Yes indeed it works! Both bugs seem to be resolved with the newest source-maps. Much appreciated @monounity thanks

from karma-typescript.

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.