Giter Site home page Giter Site logo

Comments (3)

BryanAdamss avatar BryanAdamss commented on September 26, 2024

报错信息: image

js文件内容:

module.exports = {
  resolve: {
    alias: {
      '.git': path.resolve(__dirname, './.git'),
      docker: path.resolve(__dirname, './docker'),
      node_modules: path.resolve(__dirname, './node_modules'),
      packages: path.resolve(__dirname, './packages'),
      public: path.resolve(__dirname, './public'),
      src: path.resolve(__dirname, './src'),
      tests: path.resolve(__dirname, './tests'),
      '@': path.resolve(__dirname, './src'),
      vue$: 'vue/dist/vue.runtime.esm.js',
      '@wxwork': path.resolve(__dirname, './src'),
      '@api': path.resolve(__dirname, './src/api'),
      '@api-crm': path.resolve(__dirname, './src/api-crm'),
      '@components': path.resolve(__dirname, './src/components'),
      '@config': path.resolve(__dirname, './src/config'),
      '@plugins': path.resolve(__dirname, './src/plugins'),
      '@utils': path.resolve(__dirname, './src/utils'),
      '@store': path.resolve(__dirname, './src/store'),
      '@router': path.resolve(__dirname, './src/router'),
      '@styles': path.resolve(__dirname, './src/styles'),
      '@assets': path.resolve(__dirname, './src/assets'),
      '@views': path.resolve(__dirname, './src/views'),
      '@ajax': path.resolve(__dirname, './src/plugins/httpClient/WrappedFetch.ts'),
      '@mk-RcCharts': path.resolve(__dirname, './packages/mk-RcCharts/src/components/index.js')
    }
  }
}

执行的脚本:npx add-vue-suffix --resolveConifg ./resolve.js

通过本地安装的形式,能成功吗?看报错是配置没读取到,可能npx场景有异常,我要排查下

from add-vue-suffix.

BryanAdamss avatar BryanAdamss commented on September 26, 2024

@AmbitionJs
我本地用npx测试了下,没发现问题;
您发的配置文件是完整的吗?我看似乎没有引用const path = require('path')😂
抱歉,应该是我的文档误导你了,我来调整下

from add-vue-suffix.

BryanAdamss avatar BryanAdamss commented on September 26, 2024

@AmbitionJs 我本地用npx测试了下,没发现问题; 您发的配置文件是完整的吗?我看似乎没有引用const path = require('path')😂 抱歉,应该是我的文档误导你了,我来调整下


c44c5c6
已经调整文档并添加了报错信息

from add-vue-suffix.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.