question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't find framework:webpack

See original GitHub issue

I’ve tried a bunch of different tweaks to my karma config file and nothing seems to work. Here’s the error: Error: No provider for "framework:webpack"! (Resolving: framework:webpack)

Any help is appreciated!

module.exports = function(config) {
  config.set({
    basePath: __dirname,
    plugins: [
      require("karma-webpack")
    ],
    frameworks: ['jasmine', 'sinon'],

    files: [
      'dist/styles/main.css',
      'test/**/*.js'
    ],

    preprocessors: {
      'test/**/*.js': ['webpack'],
    },

    webpack: require('./webpack.config.js'),

    reporters: ['spec'],

    port: 9876,

    colors: true,

    logLevel: config.LOG_INFO,

    autoWatch: false,

    browsers: ['Chrome'],

    browserNoActivityTimeout: 60000,

    singleRun: true
  });
};

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
SimenBcommented, May 11, 2015

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.

4reactions
volkanunsalcommented, Oct 10, 2015

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't find framework:webpack · Issue #46 - GitHub
I've tried a bunch of different tweaks to my karma config file and nothing seems to work. Here's the error: Error: No provider...
Read more >
node.js - Error: Cannot find module 'webpack' - Stack Overflow
Error: Cannot find module 'webpack' is a node error. So this has nothing to do with webpack itself (afaict). It seems like node...
Read more >
Installation | webpack
This guide goes through the various methods used to install webpack. Prerequisites. Before we begin, make sure you have a fresh version of...
Read more >
A Guide to Managing Webpack Dependencies - Toptal
js, one of today's most popular JavaScript frameworks, module bundlers allow loading NPM modules in web browsers, and component-oriented libraries (like React) ...
Read more >
Extending Webpack in the SharePoint Framework toolchain
Extending the framework Webpack configuration with custom loaders is a ... default Webpack configuration by using this approach, to get the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found