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.

ReferenceError: Can't find variable: webpackJsonp

See original GitHub issue

keep on getting this error, where is webpackJsonp defined?

and i’ve tried with a clean test file with just this one line

describe('unit test', function(){})

and it still complains ReferenceError: Can’t find variable: webpackJsonp at line 12

Im using phantomjs

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:11
  • Comments:17 (4 by maintainers)

github_iconTop GitHub Comments

47reactions
jayrmottacommented, Nov 1, 2016
const devConfig = require('./webpack.dev.config');

const commonsChunkPluginIndex = devConfig.plugins.findIndex(plugin => plugin.chunkNames);
devConfig.plugins.splice(commonsChunkPluginIndex, 1);

// ...

webpack: devConfig,

// ...

I had to do this because my webpack.dev.config inherits from a common one which loads the CommonsChunkPlugin. This is not pretty but it’s working 😄

24reactions
simple10commented, Nov 25, 2014

I was also running into this when using CommonsChunkPlugin in webpack. Disabling CommonsChunkPlugin when running in karma works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ReferenceError: Can't find variable: webpackJsonp · Issue #24
I think the problem for me is that I can't specify the vendor bundle in the files config option, because it doesn't exist...
Read more >
Can't find variable: webpackJsonp - Stack Overflow
I'm occasional getting this error and can't work out why. My vendor bundle is before my main bundle so there is no reason...
Read more >
Ionic - ReferenceError: Can't find variable: webpackJsonp
Hello, after last update of my Ionic app libraries I have seen blank white page in emulator and error in console: ReferenceError: Can't...
Read more >
webpack/webpack - Gitter
... this is resulting in "ReferenceError: Can't find variable: webpackJsonp" ... That doesn't mean there isn't one.. but I wouldn't know what it...
Read more >
Developers - ReferenceError: Can't find variable: webpackJsonp -
keep on getting this error, where is webpackJsonp defined? and i've tried with a clean test file with just this one line describe('unit...
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