nekocode / antd-dayjs-vite-plugin

A Vite port of antd-dayjs-webpack-plugin. Day.js vite plugin for Ant Design (antd).
https://www.npmjs.com/package/antd-dayjs-vite-plugin
MIT License
18 stars 0 forks source link

[不能用,报错] vite.config.js moment 配置没有删除干净 #1

Closed transtone closed 3 years ago

transtone commented 3 years ago
Error: ENOENT: no such file or directory, open 'dayjs/dist/locale/zh-cn'
    at Object.openSync (fs.js:462:3)
    at Object.readFileSync (fs.js:364:35)

正确的路径应该是 dayjs/locale/zh-cn

nekocode commented 3 years ago

@transtone 可以提供能复现的工程么?这个库目前并没有用到 dayjs/dist/locale/zh-cn 这个路径啊。

transtone commented 3 years ago

sorry, vite.config.js 还有遗留的 moment 配置导致的。