Closed Wonkasho closed 5 years ago
What is the output of npm ls deepmerge
?
From the stack trace, I would guess that either baseOptions
or overrideOptions
is undefined at this point: https://github.com/eliperelman/babel-merge/blob/master/src/index.js#L21-L25
Maybe look into laravel-mix/src/BabelConfig.js
to try to figure out what options it's expecting to be defined that is currently undefined?
This is not an issue with deepmerge. deepmerge will throw an error if you pass null or undefined in as an argument.
What is the output of
npm ls deepmerge
?
Thanks for your response, the output is:
└─┬ laravel-mix@4.0.14
└─┬ babel-merge@2.0.1
└── deepmerge@2.2.1
Thanks, I will check out laravel-mix/src/BabelConfig.js
, to me it's very cryptic to point out the exact issue, and wasn't sure why this happened, but when I saw deepmerge
in the error stack, I had to post here.
In a
laravel 5.6/reactjs app
, after upgradinglaravel-mix
from version 2 to"laravel-mix": "^4.0.14"
, when I runnpm run development
I get the below error (the error seems to be tied to this package I think, since it showsdeepmerge
):I tried for a whole day to fix it and can't figure out how to get past this error to compile successfully.
Any idea how to fix this error so we can compile the app?