swagger-api / swagger-js

Javascript library to connect to swagger-enabled APIs via browser or nodejs
http://swagger.io
Apache License 2.0
2.62k stars 762 forks source link

`These dependencies were not found` when upgrading from `3.18.5` to `3.19.0` #3607

Closed mrleblanc101 closed 3 months ago

mrleblanc101 commented 3 months ago

Q&A (please complete the following information)

Content & configuration

{
  "scripts": {
    "dev": "nuxt dev",
    "build": "nuxt build"
  },
  "dependencies": {
    "@nuxtjs/auth-next": "^5.0.0-1643791578.532b3d6",
    "@nuxtjs/axios": "^5.13.6",
    "@nuxtjs/gtm": "^2.4.0",
    "@nuxtjs/i18n": "^7.3.1",
    "@nuxtjs/moment": "^1.6.1",
    "@nuxtjs/sentry": "^8.0.6",
    "@nuxtjs/svg": "^0.4.0",
    "body-scroll-lock": "vercel/body-scroll-lock",
    "calendar-link": "^2.1.1",
    "chart.js": "^2.9.4",
    "cookie-universal-nuxt": "^2.1.5",
    "d3": "^6.6.0",
    "filesize": "^10.1.0",
    "focus-trap": "^7.5.2",
    "foundation-sites": "^6.7.5",
    "fuse.js": "^6.5.3",
    "hex-rgb": "^5.0.0",
    "i18n-iso-countries": "^7.5.0",
    "intro.js": "^7.0.1",
    "lodash": "^4.17.21",
    "moment-duration-format": "^2.3.2",
    "nuxt": "^2.15.8",
    "nuxt-feature-toggle": "^1.2.2",
    "plyr": "3.7.3",
    "portal-vue": "^2.1.7",
    "progressbar.js": "1.1.0",
    "qs": "^6.10.3",
    "swagger-client": "~3.19.0",
    "swiper": "5.x",
    "v-calendar": "^2.4.1",
    "v-click-outside": "^3.1.2",
    "vue-awesome-swiper": "^4.1.1",
    "vue-chartjs": "^3.5.1",
    "vue-currency-input": "^1.22.4",
    "vue-link": "^1.6.1",
    "vue-marquee-text-component": "^1.2.0",
    "vue-multiselect": "^2.1.6",
    "vue-slider-component": "^3.2.15",
    "vue-sticky-directive": "^0.0.10",
    "vue-sweetalert2": "^5.0.2",
    "vue-tippy": "^4.13.0",
    "vue-toastification": "^1.7.14",
    "vue-transition-expand": "^0.1.0",
    "what-input": "^5.2.10"
  },
  "devDependencies": {
    "@babel/eslint-parser": "^7.17.0",
    "@crowdin/cli": "^3.10.0",
    "@nuxtjs/eslint-config": "^12.0.0",
    "@nuxtjs/eslint-module": "^3.0.2",
    "@nuxtjs/router": "^1.7.0",
    "@nuxtjs/style-resources": "^1.2.1",
    "@nuxtjs/stylelint-module": "^4.1.0",
    "@sentry/webpack-plugin": "^2.8.0",
    "babel-polyfill": "^6.26.0",
    "eslint": "^9.8.0",
    "eslint-config-prettier": "^9.0.0",
    "eslint-plugin-no-smart-quotes": "^1.3.0",
    "eslint-plugin-nuxt": "^4.0.0",
    "eslint-plugin-prettier": "^5.0.0",
    "eslint-plugin-prettier-vue": "^5.0.0",
    "eslint-plugin-vue": "^9.14.1",
    "prettier": "^3.0.3",
    "sass": "1.77.6",
    "sass-loader": "10",
    "stylelint": "^13.12.0",
    "stylelint-order": "^4.1.0",
    "vue-i18n-locale-message": "^1.16.0",
    "vue-svg-inline-loader": "^2.1.2"
  }
}

Swagger/OpenAPI definition:

# Compilation error, so unrelated to my definition since it's fetched at runtime

Swagger-Client usage:

// Compilation error, so unrelated to my definition since it's fetched at runtime

Describe the bug you're encountering

When upgrading from 3.18.5 to 3.19.0, I get this error. I'm installing using yarn and using webpack 4.47.0 to compile

To reproduce...

Steps to reproduce the behavior:

  1. ...

Expected behavior

I see no breaking change in the changelog, I'm not sure what is wrong and why compilation won't work after the upgrade. Reverting and locking to 3.18.5 works.

Screenshots

Screenshot 2024-07-29 at 12 27 26 AM Screenshot 2024-07-29 at 12 27 33 AM

Additional context or thoughts

mrleblanc101 commented 3 months ago

I also tried with the latest version, same issue. That's why I isolated the first version where my build break.

mrleblanc101 commented 3 months ago

I guess I already asked that, but forgot about it #3136. Idk why Github search wouldn't show it to me when searching.