__webpack_require__(...) is not a function
See original GitHub issueLaravel 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:
- Created 6 years ago
- Comments:15
Top 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 >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 FreeTop 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
Top GitHub Comments
It’s related to https://github.com/webpack/webpack/issues/5399 , workaround is to downgrade
extract-text-webpack-plugin
from3.0.0
to2.1.2
.@ThomHurks Today, I edit my bootstrap.js file:
window.axios = require('axios')
towindow.axios = require('axios/dist/axios.js')
Now work well!