Join the Stack Overflow Community
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up

On Installing VueJS while running Gulp in Laravel Project, I get following:

Me-MBP:simpleb2b AdnanAhmad$ gulp build
/Applications/MAMP/htdocs//myProject//node_modules/laravel-elixir-vue/main.js:4
    Elixir.webpack.mergeConfig({
                  ^

TypeError: Cannot read property 'mergeConfig' of undefined
    at /Applications/MAMP/htdocs//myProject/node_modules/laravel-elixir-vue/main.js:4:19
    at /Applications/MAMP/htdocs//myProject//node_modules/laravel-elixir/dist/index.js:29:16
    at Array.forEach (native)
    at global.Elixir (/Applications/MAMP/htdocs//myProject//node_modules/laravel-elixir/dist/index.js:28:24)
    at Object.<anonymous> (/Applications/MAMP/htdocs//myProject//gulpfile.js:16:1)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
share|improve this question
    
Are you sure you ran npm install and all went well before it? Which versions of node/npm are you using? – J. Bruni Sep 30 at 10:36
    
@J.Bruni v6.3.0 - Yes I did run. – Volatil3 Sep 30 at 10:43
    
Maybe there are missing dependencies at package.json... can you include its contents in the question? It looks like webpack itself is missing. – J. Bruni Sep 30 at 11:09
    
Maybe installing laravel-elixir-webpack-official can solve the issue... but if this is the case I wonder why it wasn't already at package.json... npm install laravel-elixir-webpack-official --save-dev – J. Bruni Sep 30 at 11:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.