Open genu opened 5 years ago
I'm having this exact problem and it's driving me crazy, I compared the vue-cli webpack config and the only difference is the use of devtool: 'cheap-module-eval-source-map'
in version 3.0 and a new property called optimization
but I don't know how to fix it.
EDIT: It seems that the file is there but for me it's the first one when I search in Chrome 78 but it's buried in a lot of other similar files in Firefox 70 but I needed to add this to vue.config.js
:
configureWebpack: {
devtool: process.env.NODE_ENV !== 'production' ? 'eval-source-map' : false,
},
I tried using Firefox 70 in a previous version of my project with vue-cli 3.x and it's working properly, it's the first file found when searching for the name so this must be something new on vue-cli 4
Version
4.0.5
Reproduction link
https://github.com/genu/vue-sourcemaps-bug
Environment info
Steps to reproduce
vue create hello-world
yarn serve
What is expected?
I should be able to see my components like
App.vue
, etc, and be able to put breakpoints as needed.What is actually happening?
I see multiple
App.vue
files likeApp.vue?bff9
,App.vue?8842
, etc. I also see aApp.vue
, but when I go to it the source is a minified file.I can't seem to place breakpoints in the devtools in any of the vue files because they are all showing up as minified or not even the correct files.
Additional Information
Similar to: #2978 All of the
App.vue
files seem to have different contents: