abichinger / vue-js-cron

Renderless Vue.js cron editor
MIT License
67 stars 23 forks source link

i meet a error when i npm run dev -w=light #50

Closed duoluodexiaoxiaoyuan closed 5 months ago

duoluodexiaoxiaoyuan commented 5 months ago

image image

i use win11, i don't sure whether window and mac is different

abichinger commented 5 months ago

Hello @duoluodexiaoxiaoyuan

i use win11, i don't sure whether window and mac is different

This shouldn't cause any problems. I'm using Manjaro Linux.

Did you run npm install in the root directory? Which version of node/npm are you using?

I have the following versions installed:

> node --version
v20.11.0
> npm --version
10.2.4
duoluodexiaoxiaoyuan commented 5 months ago

image

this is my version,

i run npm run dev -w=core is ok

image

but run npm run dev -w=light is error , i don't konw how to solve this problem.

image

abichinger commented 5 months ago

Try to update Node.js. Vite requires Node.js >= 18.

Compatibility Note Vite requires Node.js version 18+. 20+. However, some templates require a higher Node.js version to work, please upgrade if your package manager warns about it.

duoluodexiaoxiaoyuan commented 5 months ago

Try to update Node.js. Vite requires Node.js >= 18.

Compatibility Note Vite requires Node.js version 18+. 20+. However, some templates require a higher Node.js version to work, please upgrade if your package manager warns about it.

thank you reply, I want use language is en, now it's not effective

image image

abichinger commented 5 months ago

There is a typo. It should be locale instead of locate

duoluodexiaoxiaoyuan commented 5 months ago

There is a typo. It should be locale instead of locate

image

i'm sad, i delete local repo, then try to install and run, still error.

i use antd-design-vue, i set locale is not effictive

abichinger commented 5 months ago

I just tried to run npm run dev -w=ant on my windows virtual machine and was met with the same error message.

  X [ERROR] Failed to resolve entry for package "@vue-js-cron/core". The package may have incorrect main/module/exports specified in its package.json. [plugin vite:dep-scan]

To resolve this, you need to build the core package. I'm sorry I didn't think of this sooner.

npm run build -w=core # build core package
npm run build # Or build all packages

i set locale is not effictive

Here is an example of the cron-ant compoent using the German locale: https://codesandbox.io/p/sandbox/vue-js-cron-ant-locale-50-x5x2pn

Changing the locale value after the initialization is not possible at the moment. If that's what you need, then I'll see if I can make it happen. :)

duoluodexiaoxiaoyuan commented 5 months ago

I just tried to run npm run dev -w=ant on my windows virtual machine and was met with the same error message.

  X [ERROR] Failed to resolve entry for package "@vue-js-cron/core". The package may have incorrect main/module/exports specified in its package.json. [plugin vite:dep-scan]

To resolve this, you need to build the core package. I'm sorry I didn't think of this sooner.

npm run build -w=core # build core package
npm run build # Or build all packages

i set locale is not effictive

Here is an example of the cron-ant compoent using the German locale: https://codesandbox.io/p/sandbox/vue-js-cron-ant-locale-50-x5x2pn

Changing the locale value after the initialization is not possible at the moment. If that's what you need, then I'll see if I can make it happen. :)

very thank you continue reply my questions, now vue-js-corn is can run, about locale question is resolve, I set locale="zh-cn" is ok. I see you change docus, I believe more people know and start use this repo

abichinger commented 5 months ago

I'm glad I could help. Feel free to reopen this issue if you have further questions.