编程技术网

关注微信公众号,定时推送前沿、专业、深度的编程技术资料。

 找回密码
 立即注册

QQ登录

只需一步,快速开始

极客时间

Sourcemap没有模板代码:sourcemap has not template code

作者: Thomas Song 2022-5-12 16:15:02 显示全部楼层 |阅读模式

sourcemap has not template code

Version

5.0.4

Environment info 5.0.4 @vue/cli-plugin-eslint: ~5.0.4 => 5.0.4 @vue/cli-plugin-router: ~5.0.4 => 5.0.4 @vue/cli-plugin-vuex: ~5.0.4 => 5.0.4 @vue/cli-service: ~5.0.4 => 5.0.4 @vue/cli-shared-utils: 5.0.4 @vue/component-compiler-utils: 3.3.0 (3.2.1) @vue/web-component-wrapper: 1.3.0 babel-helper-vue-jsx-merge-props: 2.0.3 eslint-plugin-vue: ^6.2.2 => 6.2.2 vue: 2.5.17 => 2.5.17 vue-clipboard2: ^0.3.1 => 0.3.1 vue-eslint-parser: 7.11.0 vue-hot-reload-api: 2.3.4 vue-i18n: ^8.24.4 => 8.24.4 vue-json-viewer: ^2.2.19 => 2.2.20 vue-loader: 17.0.0 (15.9.8) vue-router: ^3.2.0 => 3.5.1 vue-style-loader: 4.1.3 vue-template-compiler: 2.5.17 => 2.5.17 vue-template-es2015-compiler: 1.9.1 vuex: ^3.4.0 => 3.6.2 npmGlobalPackages: @vue/cli: Not Found">
Environment Info:

  System:
    OS: macOS 12.2.1
    CPU: (8) x64 Apple M1
  Binaries:
    Node: 14.17.0 - ~/.nvm/versions/node/v14.17.0/bin/node
    Yarn: 1.22.18 - ~/.nvm/versions/node/v14.17.0/bin/yarn
    npm: 6.14.13 - ~/.nvm/versions/node/v14.17.0/bin/npm
  Browsers:
    Chrome: 101.0.4951.64
    Edge: Not Found
    Firefox: 99.0.1
    Safari: 15.3
  npmPackages:
    @vue/babel-helper-vue-jsx-merge-props:  1.2.1
    @vue/babel-helper-vue-transform-on:  1.0.2
    @vue/babel-plugin-jsx:  1.0.6
    @vue/babel-plugin-transform-vue-jsx:  1.2.1
    @vue/babel-preset-app:  5.0.4
    @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:  5.0.4
    @vue/cli-plugin-babel: ~5.0.4 => 5.0.4
    @vue/cli-plugin-eslint: ~5.0.4 => 5.0.4
    @vue/cli-plugin-router: ~5.0.4 => 5.0.4
    @vue/cli-plugin-vuex: ~5.0.4 => 5.0.4
    @vue/cli-service: ~5.0.4 => 5.0.4
    @vue/cli-shared-utils:  5.0.4
    @vue/component-compiler-utils:  3.3.0 (3.2.1)
    @vue/web-component-wrapper:  1.3.0
    babel-helper-vue-jsx-merge-props:  2.0.3
    eslint-plugin-vue: ^6.2.2 => 6.2.2
    vue: 2.5.17 => 2.5.17
    vue-clipboard2: ^0.3.1 => 0.3.1
    vue-eslint-parser:  7.11.0
    vue-hot-reload-api:  2.3.4
    vue-i18n: ^8.24.4 => 8.24.4
    vue-json-viewer: ^2.2.19 => 2.2.20
    vue-loader:  17.0.0 (15.9.8)
    vue-router: ^3.2.0 => 3.5.1
    vue-style-loader:  4.1.3
    vue-template-compiler: 2.5.17 => 2.5.17
    vue-template-es2015-compiler:  1.9.1
    vuex: ^3.4.0 => 3.6.2
  npmGlobalPackages:
    @vue/cli: Not Found
Steps to reproduce

sourcemap has no template code image

What is expected?

Sourcemap具有模板代码

What is actually happening?

SourceMap没有模板代码

该问题来自:vuejs/vue-cli/issues/7130 , 试试查看该项目更多issue.

问题解答

uncleAndyChen 2022-5-12 16:48:07 显示全部楼层

image

Replication 文件“ app.vue”

腾讯云服务器 阿里云服务器
关注微信
^