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.

__webpack_require__(...) is not a function

See original GitHub issue

Laravel Mix Version: 1.4.2 Node Version : 8.0.0 NPM Version : 5.3.0 OS: Windows 10

Description:

I use code below when watch code:

mix.options({ extractVueStyles: true })

That error:

TypeError: webpack_require(…) is not a function

But when i run npm run dev, there is no error.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:15

github_iconTop GitHub Comments

5reactions
aguingandcommented, Sep 4, 2017

It’s related to https://github.com/webpack/webpack/issues/5399 , workaround is to downgrade extract-text-webpack-plugin from 3.0.0 to 2.1.2.

4reactions
maxcareercommented, Aug 20, 2017

@ThomHurks Today, I edit my bootstrap.js file: window.axios = require('axios') to window.axios = require('axios/dist/axios.js')

Now work well!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webpack, require is not a function - node.js - Stack Overflow
It's a static server which will automatically recompile your files using the same webpack config so you can be sure the code you're...
Read more >
TypeError: __webpack_require__(...) is not a function #9379
webpack-bug $npm i $npm run build $node . TypeError: __webpack_require__(...) is not a function. babel-plugin-source-map-support is a simple ...
Read more >
TypeError: require(...) is not a function in Node.js | bobbyhadz
To solve the "TypeError: require(...) is not a function", make sure to place a semicolon between your require call and an immediately invoked...
Read more >
'TypeError: arguments[i].apply is not a function' error when ...
When working with Webpack you might come across the following error: TypeError: arguments[i].apply is not a function. So what are you doing wrong...
Read more >
TypeError: require is not a function (webpack + faunadb)
This error comes up when using faunadb's driver for nodejs with webpack. Adding the following to webpack.config.js fixed the issue:
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