npm @redwoodjs/core 0.37.5
v0.37.5

latest releases: 9.0.0-canary.239, 9.0.0-canary.237, 9.0.0-canary.236...
3 years ago

🚨Code Modification Required (for projects previously on ^v0.37.3)

Patch Release

This release resolves nine issues:

How to Upgrade

Code Modification

Projects using Redwood v0.37.3 (or v0.37.4) included a workaround in ./package.json, which resolved an upstream bug from the webpack-cli dependency. Projects no longer need to "pin" the dependency @webpack-cli/serve to 1.5.2.

If your project has the following resolution, the following change must be made in ./package.json:

// ./package.json

{
  "private": true,
  "workspaces": {
    "packages": [
      "api",
      "web",
      "packages/*"
    ]
  },
  "devDependencies": {
    "@redwoodjs/core": "0.37.3"
  },
  "eslintConfig": {
    "extends": "@redwoodjs/eslint-config",
    "root": true
  },
  "engines": {
    "node": "14.x",
    "yarn": "1.x"
+  }
-  },
-  "resolutions": {
-    "@webpack-cli/serve": "1.5.2"
-  }
}

Upgrade Packages to v0.37.5 from v0.37.x

Run the following command within your App's directory:

yarn redwood upgrade

Troubleshooting

After making the following code modification and upgrading, you can confirm your project is using @webpack-cli/serve@1.6.0 by running yarn why @webpack-cli/serve.

Check your project by running yarn rw dev. If you encounter any errors with webpack (specifically @webpack-cli/serve), try the following steps:

  1. you can manually remove any occurrences of @webpack-cli/serve@1.5.2 from `yarn.lock, or
  2. delete your project's ./node_modules, then run yarn -f, or
  3. if your issue does not resolve, delete ./node_modules and also delete yarn.lock. Then run yarn

If you need further help, please ask in our Forums via a reply to the v0.37 Release Announcement.

Don't miss a new core release

NewReleases is sending notifications on new releases.