Giter Site home page Giter Site logo

Comments (6)

SimenB avatar SimenB commented on May 14, 2024 5

remove the plugins-field, karma automatically includes all karma- packages.

I got the same error you did when having 'webpack' in frameworks, make sure that's not the case.

from karma-webpack.

volkanunsal avatar volkanunsal commented on May 14, 2024 4

It turned out that I had put webpack in frameworks field. Removing it from there eliminated the error.

from karma-webpack.

haimich avatar haimich commented on May 14, 2024 2

I had the same problem:

/home/juicebox/Code/karma-test/node_modules/karma/node_modules/di/lib/injector.js:9
      throw error('No provider for "' + name + '"!');
            ^
Error: No provider for "framework:jasmine"! (Resolving: framework:jasmine)
    at error (/home/juicebox/Code/karma-test/node_modules/karma/node_modules/di/lib/injector.js:22:68)
    at Object.parent.get (/home/juicebox/Code/karma-test/node_modules/karma/node_modules/di/lib/injector.js:9:13)
    at get (/home/juicebox/Code/karma-test/node_modules/karma/node_modules/di/lib/injector.js:54:19)
    at /home/juicebox/Code/karma-test/node_modules/karma/lib/server.js:29:14
    at Array.forEach (native)
    at start (/home/juicebox/Code/karma-test/node_modules/karma/lib/server.js:28:21)
    at invoke (/home/juicebox/Code/karma-test/node_modules/karma/node_modules/di/lib/injector.js:75:15)
    at Object.exports.start (/home/juicebox/Code/karma-test/node_modules/karma/lib/server.js:307:12)
    at Object.exports.run (/home/juicebox/Code/karma-test/node_modules/karma/lib/cli.js:220:27)
    at Object.<anonymous> (/home/juicebox/Code/karma-test/node_modules/karma/bin/karma:3:23)

After removing the plugin section as described by @SimenB it worked!

from karma-webpack.

h2jorm avatar h2jorm commented on May 14, 2024 2

@SimenB It is the right way. Thanks! Readme.md should be updated.

from karma-webpack.

volkanunsal avatar volkanunsal commented on May 14, 2024

Having the same problem. Removing the plugins section didn't work for me.

from karma-webpack.

mingzepeng avatar mingzepeng commented on May 14, 2024

@haimich i met the same problem, thanks for your solution

from karma-webpack.

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.