TypeScript SourceMaps duplicate components files in browser devtools source
See original GitHub issueVersion
4.5.11
Environment info
System:
OS: Windows 10 10.0.18363
CPU: (8) x64 Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
Binaries:
Node: 14.15.1 - C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm: 6.14.8 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: 88.0.4324.150
Edge: Spartan (44.18362.449.0)
npmPackages:
@fullcalendar/vue: ^5.5.0 => 5.5.0
@types/vue-router: ^2.0.0 => 2.0.0
@vue/babel-helper-vue-jsx-merge-props: 1.2.1
@vue/babel-helper-vue-transform-on: 1.0.0
@vue/babel-plugin-jsx: 1.0.0
@vue/babel-plugin-transform-vue-jsx: 1.2.1
@vue/babel-preset-app: 4.5.10
@vue/babel-preset-jsx: 1.2.4
@vue/babel-sugar-composition-api-inject-h: 1.2.1
@vue/babel-sugar-composition-api-render-instance: 1.2.4
@vue/babel-sugar-functional-vue: 1.2.2
@vue/babel-sugar-inject-h: 1.2.2
@vue/babel-sugar-v-model: 1.2.3
@vue/babel-sugar-v-on: 1.2.3
@vue/cli-overlay: 4.5.10
@vue/cli-plugin-babel: ~4.5.0 => 4.5.10
@vue/cli-plugin-e2e-cypress: ~4.5.0 => 4.5.10
@vue/cli-plugin-eslint: ~4.5.0 => 4.5.10
@vue/cli-plugin-router: ~4.5.0 => 4.5.10
@vue/cli-plugin-typescript: ~4.5.0 => 4.5.10
@vue/cli-plugin-unit-jest: ^4.5.9 => 4.5.10
@vue/cli-plugin-vuex: ~4.5.0 => 4.5.10
@vue/cli-service: ~4.5.0 => 4.5.10
@vue/cli-shared-utils: 4.5.10
@vue/component-compiler-utils: 3.2.0
@vue/eslint-config-typescript: ^5.0.2 => 5.1.0
@vue/preload-webpack-plugin: 1.1.2
@vue/test-utils: ^1.0.3 => 1.1.2
@vue/web-component-wrapper: 1.2.0
bootstrap-vue: ^2.21.2 => 2.21.2
eslint-plugin-vue: ^6.2.2 => 6.2.2
jest-serializer-vue: 2.0.2
portal-vue: 2.1.7
typescript: ~3.9.3 => 3.9.7
vue: ^2.6.11 => 2.6.12
vue-class-component: ^7.2.3 => 7.2.6
vue-eslint-parser: 7.3.0
vue-functional-data-merge: 3.1.0
vue-hot-reload-api: 2.3.4
vue-jest: 3.0.7
vue-loader: 15.9.6 (16.1.2)
vue-multiselect: ^2.1.6 => 2.1.6
vue-observe-visibility: 0.4.6
vue-phone-number-input: ^1.1.10 => 1.1.10
vue-property-decorator: ^9.1.2 => 9.1.2 (8.5.1)
vue-resize: 0.4.5
vue-router: ^3.2.0 => 3.4.9
vue-style-loader: 4.1.2
vue-template-compiler: ^2.6.11 => 2.6.12
vue-template-es2015-compiler: 1.9.1
vue-virtual-scroller: 1.0.10
vuex: ^3.4.0 => 3.6.0
vuex-class-modules: ^1.1.3 => 1.2.0
npmGlobalPackages:
@vue/cli: Not Found
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.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:7
- Comments:7
Top Results From Across the Web
vue.js - Why does Chrome DevTools show multiple garbled ...
Sometimes I can find the file I want (with the original source code) but sometimes not. What are these weird files and how...
Read more >JavaScript Debugging with Sourcemaps - TrackJS
Enter the Sourcemap A sourcemap is a mapping between the generated/transpiled/minified JavaScript file and one or more original source files. The main purpose ......
Read more >4 Reasons Why Your Source Maps are Broken - Sentry Blog
Missing or incorrect source map directive · Missing original source files · Bad source maps caused by multiple transformations · Files are ...
Read more >TypeScript files do not show up in the debugger when relative ...
Blocks: source-maps. Component: JavaScript Engine → Developer Tools: Debugger. Priority: -- → P3. Product: Core → Firefox ...
Read more >Chrome Developer Tools caches old version of JavaScript ...
However, in some circumstances, certain JavaScript source files will not appear on the "Sources" tab, despite the fact that the browser is executing...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Vue.config
tsconfig.json
Example of the issue:
Output of each file listed from image:
TheDashboard.vue?4b99
TheDashboard.vue?ce3b
TheDashboard.vue?f286
TheDashboard.vue?130f (The proper source mapped file)
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.