Code Monkey home page Code Monkey logo

vite-plugin-antdv1-momentjs-resolver's People

Contributors

annoyc avatar carl-jin avatar lvming6816077 avatar tanimodori avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

vite-plugin-antdv1-momentjs-resolver's Issues

插件在vite dev模式下会导致vite崩溃,无法启动

image
截图中的.push方法会导致config.optimizeDeps.esbuildOptions.plugins结果变成一个数字(因为push方法返回push之后数组的长度)。
因为数字没有map方法,所以vite服务器启动出错了:
image

建议这里将.push改成.concat

Windows下出现

TypeError: (void 0) is not a function
    at validator2 (moment-util.js:8:64)
    at assertProp (vue.runtime.esm.js:1714:10)
    at validateProp (vue.runtime.esm.js:1632:5)
    at loop (vue.runtime.esm.js:4678:17)
    at initProps (vue.runtime.esm.js:4711:33)
    at initState (vue.runtime.esm.js:4652:21)
    at VueComponent.Vue2._init (vue.runtime.esm.js:5020:5)
    at new VueComponent (vue.runtime.esm.js:5168:12)
    at createComponentInstanceForVnode (vue.runtime.esm.js:3304:10)
    at init (vue.runtime.esm.js:3133:45)
export var TimeType = {
  validator: function validator(value) {
    return typeof value === 'string' || isNil(value) || moment.isMoment(value);
  }
};

低版本Node.js无法运行

config.optimizeDeps.esbuildOptions.plugins = config.optimizeDeps.esbuildOptions.plugins ?? [];

低版本Node.js无法运行

v1.1.1版本运行报错

image
image
看起来是这一步报错,push返回的是不是数组,而是刚刚push进去的值

btw:v1.1.1的正则在我的项目中不起作用,选中值的时候仍会报错(TypeError: moment.isMoment is not a function),目前安装v1.1.0版本运行正常

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.