Giter Site home page Giter Site logo

Comments (9)

gajus avatar gajus commented on May 14, 2024 6

Are you using webpack.optimize.DedupePlugin() plugin? Removing the latter plugin from my config solved the issue.

from karma-webpack.

nishp1 avatar nishp1 commented on May 14, 2024

Any thoughts?

Now getting following error with the upgrade of webpack to 1.7.0.

WARN [preprocess]: Can not load "webpack"!
  TypeError: Cannot read property 'filename' of null

from karma-webpack.

dennis-johnson-dev avatar dennis-johnson-dev commented on May 14, 2024

This seems to be our issue as well. @nishp1 Have you found a good workaround yet? cc @sokra

from karma-webpack.

nishp1 avatar nishp1 commented on May 14, 2024

I ended up upgrading webpack to latest version so that there is only version of webpack.

from karma-webpack.

idchlife avatar idchlife commented on May 14, 2024

Just now encountered error

/Users/myuser/www/react-test/scripts/node_modules/webpack/lib/Template.js:80
                            source.add(BalancePanel.render(module, dependencyTemplates, chunk));
                                       ^
ReferenceError: BalancePanel is not defined

When BalancePanel was my file and my class, not webpacks

I commented this

//var webpack = require('webpack');

and this

//new webpack.DefinePlugin({
//  'process.env': {
//    'NODE_ENV': JSON.stringify('production')
//  }
//})

in webpack.config.js file, also deleted webpack folder from node_modules, so exactly webpack from /usr/local/bin/webpack will be used.

Yep, I assume when using production plugin I will need to use it once and not in dev, otherwise I will end up with webpack trying to insert my classes in its source code (or I'm stupid)

from karma-webpack.

idchlife avatar idchlife commented on May 14, 2024

Addition. I also had to delete react and react-tools folders, after minification/stringification (or what it is), so they won't search for my class.

from karma-webpack.

eugene1g avatar eugene1g commented on May 14, 2024

I had the same issue while using a global install of webpack and webpack-dev-server (current). With no other changes, it just started throwing that error one morning. I removed webpack and webpack-dev-server from global node_modules, installed both again and they worked fine again. Probably something going wrong with dependencies.

from karma-webpack.

gajus avatar gajus commented on May 14, 2024

In addition, see webpack/webpack#1082.

from karma-webpack.

joshwiens avatar joshwiens commented on May 14, 2024

Resolving as this is no longer valid in 2.2.0 and resolved for 1.x

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.