Open mortenege opened 5 years ago
@mortenege can you run npm list --depth=0
and post the results?
+-- axios@0.18.1
+-- bootstrap@4.3.1
+-- cross-env@5.2.0
+-- jquery@3.4.1
+-- laravel-mix@4.0.16
+-- laravel-mix-polyfill@1.0.2
+-- lodash@4.17.11
+-- popper.js@1.15.0
+-- resolve-url-loader@2.3.2
+-- sass@1.22.1
+-- sass-loader@7.1.0
+-- vue@2.6.10
+-- vue-select@3.1.0
+-- vue-svg-loader@0.12.0
+-- vue-template-compiler@2.6.10
`-- vuex@3.1.1
Had the same issue, Installing latest core-js and adding the option corejs: 3
fixed it for me. Also I've added this plugin: https://warlord0blog.wordpress.com/2018/08/01/i-hate-internet-explorer/
npm install --save @babel/polyfill
then npm run dev
again solves this issue.
Just make sure @babel/polyfill
is inside the dependencies
(not devDependencies
) of your package.json
and its up-to-date. In my case I'm using the "^7.4.4"
and every thing works fine.
// package.json
...
"devDependencies": {
"laravel-mix": "^4.1.2",
"laravel-mix-polyfill": "^1.1.0"
}
...
"dependencies": {
"@babel/polyfill": "^7.4.4"
}
...
The core-js
is included in @babel/polyfill
, and you don't have to modify the corejs
option.
Also make sure the laravel-mix
and laravel-mix-polyfill
are up-to-date.
I installed via
npm install --save laravel-mix-polyfill
Exceptions when running
npm run hot