Can't find framework:webpack
See original GitHub issueI’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:
- Created 8 years ago
- Reactions:1
- Comments:6 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

remove the
plugins-field,karmaautomatically includes allkarma-packages.I got the same error you did when having
'webpack'in frameworks, make sure that’s not the case.It turned out that I had put webpack in
frameworksfield. Removing it from there eliminated the error.