Vite Error from Upgrade

Hello Redwood Community,

I had a project using version redwood 5.4.2. I decided to upgrade it, so I deleted node_modules & cleared yarn cache and did “yarn rw upgrade”. However, my project broke as I cannot setup vite.

I read the v6.0.0 release notes. It states that I can set up vite using
yarn rw setup vite

However, when I try to do yarn rw setup vite, I get the error message:

:heavy_multiplication_x: The “data” argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of
Promise
:black_medium_square: Checking bundler isn’t set to webpack…
:black_medium_square: Creating new entry point in web/src/entry.client.{jsx,tsx}
:black_medium_square: Adding @redwoodjs/vite dev dependency to web side…
The “data” argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Promise

My current redwood version is 7.6.3. How can I overcome this problem? Thank you!

:wave: Do you mind detailing your approach to upgrading? Did you go incrementally version by version, or did you jump from 5.4 to 7.6 in one go and then start stepping through the version upgrade guides?

I’m not certain otherwise on the error, but the more info you can give the better for us helping to debug! :pray:

Hey, Thank you very much for the response.

I directly used the yarn rw upgrade command, jumping 5.4 to 7.6.

However, when I try to switch to 6.0.0 directly I get errors like

Error: @redwoodjs/mailer-handler-nodemailer@npm:6.0.0: No candidates found

during yarn install. To install a specific version I used the command

yarn redwood upgrade --tag 6.0.0

Hey @TheRWdev :wave:

That npm error you should would make sense to me as I don’t think we had release the mailer content until v6.2.0.

Were you using mailer in v5? If you do yarn why @redwoodjs/mailer-handler-nodemailer what do you see?