-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Closed
Labels
bugneeds team reproWe acknowledged your report and will soon try to reproduce itWe acknowledged your report and will soon try to reproduce itscope: cli-service serve
Description
Version
3.0.0-rc.3
Reproduction link
https://github.com/vuejs/vue-cli
Steps to reproduce
- Run vue create test-project
- Choose default options
- Change a
.vue
component so that the javascript code will throw an exception - run
npm run serve
What is expected?
The browser console should display the line number where the exception is being thrown in the .vue
file
What is actually happening?
The browser console displays an unhelpful error message referencing only vue.runtime.esm.js
When creating a new project using vue-cli via create or UI, no vue.config.js file is created by default. In order to see the line number of an exception in your source code, you have to manually create vue.config.js
and add the following:
module.exports = {
configureWebpack: {
devtool: 'source-map'
}
}
It seems to me that everyone would like to be able to source their errors, so I feel that this should be done by default.
tvkit, roobert, lustan3216, mydaoyuan, edipetres and 15 more
Metadata
Metadata
Assignees
Labels
bugneeds team reproWe acknowledged your report and will soon try to reproduce itWe acknowledged your report and will soon try to reproduce itscope: cli-service serve