Issue with @babel/types causing deployment blockage, workaround provided.
17 replies
Last updated: Nov 2, 2021
R
Is there any fix for this ?
Nov 1, 2021, 1:02 PM
J
Glad to hear it! Experiencing the same issue here.
Nov 1, 2021, 1:23 PM
J
Glad to hear it! Experiencing the same issue here.
Nov 1, 2021, 1:23 PM
R
Thank god thanks for the update
user Y
!!It means a lot.Nov 1, 2021, 1:26 PM
R
Thank god thanks for the update
user Y
!!It means a lit.Nov 1, 2021, 1:26 PM
J
user Y
thanks for having a lookNov 1, 2021, 1:53 PM
We have indications that it’s related to an upstream dependency. Hopefully we’ll be able to push a fix in not too long
Nov 1, 2021, 1:57 PM
T
Thanks
user Y
! It does seem to correlate time wise with the introduction of babel 7.16.0Nov 1, 2021, 3:39 PM
R
should i try installing babel version 6 ?
Nov 1, 2021, 4:06 PM
E
Is there any progress? This issue is currently blocking one of our deployments
Nov 1, 2021, 4:57 PM
E
Is there any progress? This issue is currently blocking one of our deployments
Nov 1, 2021, 4:57 PM
T
user L
user L
just posted on the github issue -> “Hi we’re aware of this issue and it’s very high priority for us. We’re actively looking for the root cause but for now you can get around this issue by using yarn `resolutions` or npm-force-resolutions.So far we’ve isolated it to
@babel/types.To force an older version of
@babel/types, add the following to your
package.jsonand then reinstall:
{ "name": "mysanityproject", "keywords": ["sanity"], "scripts": { // 👇👇👇 (only if you use npm) add this to your scripts "preinstall": "npx npm-force-resolutions" // 👆👆👆 }, "dependencies": { "@sanity/base": "^2.21.7", "@sanity/components": "^2.14.0", "@sanity/core": "^2.21.7" }, // 👇👇👇 Add this regardless if you're using npm or yarn "resolutions": { "@babel/types": "7.15.x" } // 👆👆👆 }
npm,
npm-force-resolutionswill run prior to your install and create a
package-lock.jsonfile that resolves the compatible versions.• If using
yarn, resolutions are built in and it should work after a
yarninstallAfter the reinstall, the graphql deploy should work.”
Nov 1, 2021, 5:05 PM
E
fantastic that’s worked, thanks!
Nov 1, 2021, 5:10 PM
T
user X
lol, sorry! Appreciate the quick fix!Nov 1, 2021, 5:29 PM
Hi this should be fixed properly in v7.21.8. Feel free to remove those other workarounds. See here
Nov 1, 2021, 11:32 PM
Hi this should be fixed properly in v7.21.8. Feel free to remove those other workarounds. See here
Nov 1, 2021, 11:32 PM
R
Thanks for the response folks!!
Nov 2, 2021, 3:03 AM
Sanity– build remarkable experiences at scale
Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.