Open FeistyMango opened 3 years ago
Vue.config
module.exports = {
outputDir: '../wwwroot',
configureWebpack: {
devServer: {
watchOptions: {
ignored: ['tests'],
}
}
}
}
tsconfig.json
{
"compilerOptions": {
"declaration": true,
"target": "esnext",
"module": "esnext",
"strict": true,
"jsx": "preserve",
"importHelpers": true,
"moduleResolution": "node",
"emitDecoratorMetadata": false,
"experimentalDecorators": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"sourceMap": true,
"resolveJsonModule": true,
"baseUrl": ".",
"types": [
"webpack-env",
"jest",
"cypress"
],
"paths": {
"@/*": [
"src/*"
]
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
]
},
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.vue",
"tests/**/*.ts",
"tests/**/*.tsx"
],
"exclude": [
"node_modules"
]
}
Example of the issue:
Output of each file listed from image:
TheDashboard.vue?4b99
import { render, staticRenderFns } from "./TheDashboard.vue?vue&type=template&id=70e3a247&"
import script from "./TheDashboard.vue?vue&type=script&lang=ts&"
export * from "./TheDashboard.vue?vue&type=script&lang=ts&"
/* normalize component */
import normalizer from "!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js"
var component = normalizer(
script,
render,
staticRenderFns,
false,
null,
null,
null
)
/* hot reload */
if (module.hot) {
var api = require("C:\\zimmer\\bluecloudweb\\BlueCloud.Web\\mfe\\node_modules\\vue-hot-reload-api\\dist\\index.js")
api.install(require('vue'))
if (api.compatible) {
module.hot.accept()
if (!api.isRecorded('70e3a247')) {
api.createRecord('70e3a247', component.options)
} else {
api.reload('70e3a247', component.options)
}
module.hot.accept("./TheDashboard.vue?vue&type=template&id=70e3a247&", function () {
api.rerender('70e3a247', {
render: render,
staticRenderFns: staticRenderFns
})
})
}
}
component.options.__file = "src/pages/TheDashboard.vue"
export default component.exports
TheDashboard.vue?ce3b
export * from "-!../../node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"372bf668-vue-loader-template\"}!../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TheDashboard.vue?vue&type=template&id=70e3a247&"
TheDashboard.vue?f286
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"div",
[
_c("TheSmartFilter", {
attrs: { items: _vm.smartFilterItems },
model: {
value: _vm.selectedFilterItem,
callback: function($$v) {
_vm.selectedFilterItem = $$v
},
expression: "selectedFilterItem"
}
}),
_c("keep-alive", [_c("router-view")], 1)
],
1
)
}
var staticRenderFns = []
render._withStripped = true
export { render, staticRenderFns }
TheDashboard.vue?130f (The proper source mapped file)
import { Component, Vue } from 'vue-property-decorator';
@Component
export default class TheDashboard extends Vue {
patientsSummary: PatientsSummaryResponse | null = null;
get smartFilterItems() {
return [
];
}
get selectedFilterItem(): SmartFilterItem {
return (
);
}
async activated() {
}
}
I continue to have this problem with all of my vue applications. Does anyone have any experience with this issue?
I am getting this too, but it's only started recently and only seems to be affecting one file
Also started happening for me a couple of weeks ago, on random files, and goes away sometimes after editing the component and hot reloading it.
Same for me on dev and production mode using devtool: 'source-map'
Same for me, if use debugger
, cannot into debugger correctlly.
I find if i refresh the page which has debugger
, can not into debugger and the file will jump many times. if not first into debugger page, then can into debugger.
Same for me, it's any update?
Version
4.5.11
Environment info
Steps to reproduce
Build a vue app with Typescript enabled along with source maps and hot reloading via
npm run serve
. Load the application and make a few changes that trigger a component to be hot reloaded in the browser.What is expected?
I should have a single componet file with a single source map associated with it so that I can find said component and debug into it.
What is actually happening?
You should see the affected component file being repeated multiple times with source maps mapping to what appears to be the deltas being sent back by the hot reloading process.