Code Monkey home page Code Monkey logo

karma-stacktrace's Introduction

karma-stacktrace's People

Contributors

asapach avatar dependabot[bot] avatar sergei-startsev avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

karma-stacktrace's Issues

Failed to execute 'importScripts' on 'WorkerGlobalScope': The URL 'undefined' is invalid.

After updating from karma 4.1.0 to 6.3.4, I get this error:

Electron 12.0.2 (Node 14.16.0) ERROR
  An error was thrown in afterAll
  Uncaught SyntaxError: Failed to execute 'importScripts' on 'WorkerGlobalScope': The URL 'undefined' is invalid. thrown

The code that tries to execute importScripts is from karma-stacktrace here:

function buildWorkerScript(stacktracejsURL) {
return `importScripts("${stacktracejsURL}");
var sourceCache = {"${currentPage}": " ","<anonymous>": " "};
onmessage = function (message) {
StackTrace.fromError({stack: message.data}, { sourceCache: sourceCache})
.then(function (stackFrames) {
stackFrames.forEach(function (s) { s.serialized = s.toString(); });
postMessage([message.data, stackFrames]);
});
};`;
}

where stacktracejsURL is undefined.

Any idea why updating karma breaks karma-stacktrace or causes this error to show up?

Cannot utilize plugin

package

    "jasmine-spec-reporter": "^4.2.1",
    "karma": "^4.0.1",
    "karma-chrome-launcher": "^2.2.0",
    "karma-coverage-istanbul-reporter": "^2.0.5",
    "karma-jasmine": "^2.0.1",
    "karma-jasmine-html-reporter": "^1.4.0",
    "karma-junit-reporter": "^1.2.0",
    "karma-stacktrace": "^2.0.1",

karma

frameworks: [
      'jasmine',
      '@angular-devkit/build-angular',
      'karma-stacktrace'
    ],
    files: [
      'node_modules/jquery/dist/jquery.min.js',
      'node_modules/datatables.net/js/jquery.dataTables.js',
      'node_modules/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.js',
      'src/typings/model.d.ts'
    ],
    plugins: [
	require('karma-jasmine'),
        require('karma-chrome-launcher'),
        require('karma-jasmine-html-reporter'),
        require('karma-coverage-istanbul-reporter'),
        require('karma-junit-reporter'),
        require('karma-stacktrace'),
        require('@angular-devkit/build-angular/plugins/karma')
      ],

ng test ->
10% building 2/2 modules 0 active26 07 2019 14:41:52.984:ERROR [karma-server]: Server start failed on port 9876: Error: No provider for "framework:karma-stacktrace"! (Resolving: framework:karma-stacktrace)

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.