buefy / nuxt-buefy

Nuxt Buefy
MIT License
221 stars 33 forks source link

Bump `Buefy` to `v0.9.28` #151

Closed wesdevpro closed 7 months ago

wesdevpro commented 7 months ago

Proposed Changes

As requested here: https://github.com/buefy/buefy/pull/4011

codecov-commenter commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (a33bcb3) 90.00% compared to head (5d8a2d9) 90.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #151 +/- ## ======================================= Coverage 90.00% 90.00% ======================================= Files 2 2 Lines 20 20 Branches 5 5 ======================================= Hits 18 18 Misses 2 2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

mirocklez commented 7 months ago

You could bump the Nuxt versions to 2.17.3 and the other dev deps as well - to stay updated :)

wesdevpro commented 7 months ago

Note: the force push was to amend the commit bump: nuxt to v2.17.2 to bump: nuxt to v2.17.3

mirocklez commented 7 months ago

The version is not updated yet in the NPM - can you publish it there? https://www.npmjs.com/package/nuxt-buefy?activeTab=versions

kikuomax commented 7 months ago

The version is not updated yet in the NPM - can you publish it there? https://www.npmjs.com/package/nuxt-buefy?activeTab=versions

@miroslavgeorgiev @wesdevpro GitHub Actions workflow for publishing npm package failed with:

npm ERR! `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
npm ERR! 
npm ERR! Invalid: lock file's buffer@4.9.2 does not satisfy buffer@6.0.3
npm ERR! Missing: buffer@4.9.2 from lock file

There is something wrong with package-lock.json. Removing node_modules, package-lock.json and yarn.lock, and re-running npm install did not solve the problem on my machine (M1 MacBook, Node.js v18).

I found dependencies related to nuxt@2.17.3 required different buffer versions:

Since the requirement for buffer>=6.0.3 is in peerDependencies, it is user's responsibility to install buffer>=6.0.3. As we did not explicitly install buffer>=6.0.3, we ended up with buffer@4.9.2 installed.

mirocklez commented 7 months ago

The version is not updated yet in the NPM - can you publish it there? https://www.npmjs.com/package/nuxt-buefy?activeTab=versions

@miroslavgeorgiev @wesdevpro GitHub Actions workflow for publishing npm package failed with:

npm ERR! `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
npm ERR! 
npm ERR! Invalid: lock file's buffer@4.9.2 does not satisfy buffer@6.0.3
npm ERR! Missing: buffer@4.9.2 from lock file

There is something wrong with package-lock.json. Removing node_modules, package-lock.json and yarn.lock, and re-running npm install did not solve the problem on my machine (M1 MacBook, Node.js v18).

I found dependencies related to nuxt@2.17.3 required different buffer versions:

  • @nuxt/clicrcbuffer>=6.0.3 (in peerDependencies)
  • @nuxt/webpackwebpackbarwebpacknode-libs-browserbuffer^4.3.0 (in dependencies)

Since the requirement for buffer>=6.0.3 is in peerDependencies, it is user's responsibility to install buffer>=6.0.3. As we did not explicitly install buffer>=6.0.3, we ended up with buffer@4.9.2 installed.

This is really strange. I checked our company apps - on all of them we're on Nuxt 2.17.3 and inside the package-lock file we've ended up with:

"node_modules/buffer": {
      "version": "4.9.2",
      "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz",
      "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==",
      "dependencies": {
        "base64-js": "^1.0.2",
        "ieee754": "^1.1.4",
        "isarray": "^1.0.0"
      }
    },

As we've followed the same strategy as you:

kikuomax commented 7 months ago

@miroslavgeorgiev Thank you for investigating the error. I tried Node v20.x:

  1. I switched my Node.js to v20.11.1 (npm v10.2.4).
  2. I deleted package-loc.json, yarn.lock, and node_modules.
  3. I ran npm install.
  4. I ran npm ci.
  5. I got the same error.

We worked around the issue by explicitly installing buffer@6.0.3 (#152), and nuxt-buefy v0.4.28 was successfully published. If the latest nuxt-buefy had any problem, we would appreciate your PR.

mirocklez commented 7 months ago

It is working now, so thank you too :)