Closed jrmcdona closed 7 years ago
How are you using require in your karma config yet do not have require or karma require installed? It errors for me.
Here is your config. But if you your package.json has no require installed. Thanks module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine'], files: [ { pattern: 'test/main.js', watched: false } ], exclude: [ ], preprocessors: { 'test/main.js': ['webpack', 'sourcemap'] }, webpack: require('./webpack.config')({env: 'test'}), reporters: ['progress'], port: 9876, colors: true, logLevel: config.LOG_INFO, autoWatch: false, browsers: ['Chrome'], singleRun: true, concurrency: Infinity }) }
I figured it out. Was an issue with my webpack file.
How are you using require in your karma config yet do not have require or karma require installed? It errors for me.
Here is your config. But if you your package.json has no require installed. Thanks module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine'], files: [ { pattern: 'test/main.js', watched: false } ], exclude: [ ], preprocessors: { 'test/main.js': ['webpack', 'sourcemap'] }, webpack: require('./webpack.config')({env: 'test'}), reporters: ['progress'], port: 9876, colors: true, logLevel: config.LOG_INFO, autoWatch: false, browsers: ['Chrome'], singleRun: true, concurrency: Infinity }) }