abichinger / vue-js-cron

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

error during build command #58

Closed NicolaCarminatiCms closed 2 months ago

NicolaCarminatiCms commented 2 months ago

Hi, i've a problem during the npm run build command with your module ""@vue-js-cron/core": "^5.0.3"": Here the exception:

image

instead, the "npm run serve" command works correclty. Can you help?

abichinger commented 2 months ago

Hi,

can you share your project? Or a MRE (minimal reproducible example)?

NicolaCarminatiCms commented 2 months ago

No, i cannot share the project because is private. I can give you the packages.json. Maybe some conficts?

{
  "name": "Appfrontend",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build"
  },
  "dependencies": {
    "@microsoft/signalr": "^6.0.2",
    "@vue-js-cron/core": "^5.0.3",
    "axios": "^0.26.0",
    "click-outside-vue3": "^4.0.1",
    "core-js": "^3.8.3",
    "cron-parser": "^4.9.0",
    "file-saver": "^2.0.5",
    "highcharts": "^9.3.3",
    "javascript-color-gradient": "^2.4.4",
    "jquery": "^3.6.0",
    "language-name-map": "^0.3.0",
    "moment": "^2.29.1",
    "vue": "^3.2.13",
    "vue-axios": "^3.4.1",
    "vue-class-component": "^8.0.0-0",
    "vue-cookies": "^1.8.1",
    "vue-debounce": "^3.0.2",
    "vue-final-modal": "^3.4.11",
    "vue-i18n": "^9.2.2",
    "vue-lang-code-flags": "^1.0.13",
    "vue-property-decorator": "^9.1.2",
    "vue-router": "^4.0.3",
    "vue-toggle-component": "^1.0.16",
    "vue3-timepicker": "^1.0.0-beta.2",
    "vuex": "^4.0.0"
  },
  "devDependencies": {
    "@types/moment-duration-format": "^2.2.3",
    "@vue/cli-plugin-babel": "~5.0.0",
    "@vue/cli-plugin-router": "~5.0.0",
    "@vue/cli-plugin-typescript": "~5.0.0",
    "@vue/cli-plugin-vuex": "~5.0.0",
    "@vue/cli-service": "~5.0.0",
    "less": "^4.1.2",
    "less-loader": "^10.2.0",
    "typescript": "~4.5.5"
  }
}
abichinger commented 2 months ago

I don't think there is a conflict. Have you tried upgrading your typescript dependency? You could also try to migrate to Vite. Personally, I have not tested this library with @vue/cli-service

NicolaCarminatiCms commented 2 months ago

Everithing is up-to-date. I tried also to delete the node_modules/ folder, without success

abichinger commented 2 months ago

Everithing is up-to-date.

According to your package.json file you are not using the latest version of typescript

NicolaCarminatiCms commented 2 months ago

Oh sorry, you're right. Now it works! To use this libs, Typescript >= 5 is needed:

my package.json: "typescript": "^5.4.5"

abichinger commented 2 months ago

Nice!

To use this libs, Typescript >= 5 is needed

Thanks for letting me know.