Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

W.createUpload is not a function #295

Open
sharpsteelsoftware opened this issue Jul 17, 2023 · 21 comments
Open

W.createUpload is not a function #295

sharpsteelsoftware opened this issue Jul 17, 2023 · 21 comments
Labels

Comments

@sharpsteelsoftware
Copy link

Plugin was working fine now I am getting this crash anytime I upload a video.

"sanity-plugin-mux-input": "^2.1.0",

@jjjuulliiaann
Copy link

I have the same error with 2.1.1. Have you found a solution for this?

@stipsan
Copy link
Member

stipsan commented Aug 3, 2023

Are you using sanity deploy or embedding your Studio in something like Next.js?

@jjjuulliiaann
Copy link

I have the error in a self hosted studio (Netlify) and not embedded in Next.js

@sharpsteelsoftware
Copy link
Author

Mine was hosted with sanity deploy as a standalone project. I was getting this error in both local and deployed. Bizarrely, it "disappeared" for me -- I did not fix it, but I dread it coming back.

@sharpsteelsoftware
Copy link
Author

Now I am getting xDr.createUpload is not a function when deployed to vercel and W4.createUpload is not a function locally.

@sharpsteelsoftware
Copy link
Author

I am using signed urls

@sharpsteelsoftware
Copy link
Author

please help this makes the plugin completely dead for me :(

@sharpsteelsoftware
Copy link
Author

i changed absolutely nothing but it is working now. this must be an intermittent issue.

@stipsan
Copy link
Member

stipsan commented Aug 10, 2023

@sharpsteelsoftware could you open ./node_modules/sanity-plugin-mux-input/package.json and tell me the version you have there?

@tristantbg
Copy link

tristantbg commented Aug 10, 2023

I face the same problem with the latest version of Sanity and this plugin (2.2.2) :

    "@sanity/dashboard": "^3.1.5",
    "@sanity/ui": "^1.7.4",
    "@sanity/vision": "^3.15.0",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-icons": "^4.9.0",
    "react-is": "^18.2.0",
    "sanity": "^3.15.0",
    "sanity-plugin-mux-input": "^2.2.2"

@sharpsteelsoftware
Copy link
Author

  "dependencies": {
    "@sanity/vision": "^3.14.5",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-icons": "^4.10.1",
    "react-is": "^18.2.0",
    "sanity": "^3.14.5",
    "sanity-plugin-media": "^2.2.2",
    "sanity-plugin-mux-input": "^2.2.1",
    "styled-components": "^6.0.7",
    "twilio": "^4.14.1"
  },
  "devDependencies": {
    "@sanity/eslint-config-studio": "^3.0.0",
    "@types/react": "^18.2.18",
    "@types/styled-components": "^5.1.26",
    "eslint": "^8.46.0",
    "prettier": "^3.0.1",
    "typescript": "^5.1.6"
  },

but I also got it on 2.2.2

@blucksy
Copy link

blucksy commented Aug 20, 2023

I also am getting this error except I'm receiving it as "W4.createUpload is not a function"

I am in a similar situation to @sharpsteelsoftware where I had not changed anything. On my Mux log it repeatedly says Video.upload.created and video.upload.cancelled

@blucksy
Copy link

blucksy commented Aug 20, 2023

Hey guys,

After fiddling with this for a couple hours I found that downgrading to @2.0.16 caused the issue to disappear.

Obviously not an ideal solution for those who want to have their source code up to date but hopefully sanity/mux can resolve this together.

@jjjuulliiaann
Copy link

jjjuulliiaann commented Aug 29, 2023

With v.2.2.3 I don't have the issue anymore.

@sharpsteelsoftware
Copy link
Author

I don't either but I have gone through this process a few times where it seemingly appears and disappears. I am worried it will come back.

@nicktaylor
Copy link

I feel this relates to how the plugin interacts with a newer version of Sanity or associated library. I'd recently updated Sanity from 3.12 to 3.16, and updated the plugin and it's not working there. When I go back to an old package.json and package-lock.json file, everything works. That's using the old Mux interface.

For me, rolling back even to Mux input version 2.0.17 didn't solve the problem.

@sharpsteelsoftware
Copy link
Author

It started happening to me again. I did run ncu -u (node check updates) to update package.json. Unfortunately, even after reverting (and deleting node_modules), and even when deploying the old versions, I am still getting this. Maddening!

@sharpsteelsoftware
Copy link
Author

sharpsteelsoftware commented Sep 8, 2023

OK I got it working. I had to remove the yarn.lock file as well as the node_modules and then revert package.json.

this is working

{
  "dependencies": {
    "@sanity/vision": "^3.14.3",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-icons": "^4.10.1",
    "react-is": "^18.2.0",
    "sanity": "^3.14.3",
    "sanity-plugin-media": "^2.2.1",
    "sanity-plugin-mux-input": "^2.1.1",
    "styled-components": "^6.0.4",
    "twilio": "^4.14.1"
  },
  "devDependencies": {
    "@sanity/eslint-config-studio": "^2.0.4",
    "@types/react": "^18.2.15",
    "@types/styled-components": "^5.1.26",
    "eslint": "^8.45.0",
    "prettier": "^3.0.0",
    "typescript": "^5.1.6"
  },
}

this is not

"dependencies": {
    "@sanity/vision": "^3.14.5",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-icons": "^4.10.1",
    "react-is": "^18.2.0",
    "sanity": "^3.14.5",
    "sanity-plugin-media": "^2.2.2",
    "sanity-plugin-mux-input": "^2.2.1",
    "styled-components": "^6.0.7",
    "twilio": "^4.14.1"
  },
  "devDependencies": {
    "@sanity/eslint-config-studio": "^3.0.0",
    "@types/react": "^18.2.18",
    "@types/styled-components": "^5.1.26",
    "eslint": "^8.46.0",
    "prettier": "^3.0.1",
    "typescript": "^5.1.6"
  },

@wellermiranda
Copy link

Thanks @sharpsteelsoftware!

@hanshenrik
Copy link

hanshenrik commented Jan 8, 2024

Hi, I'm also struggling with this. Errors in the GUI:

The mux-input plugin crashed
W4.createUpload is not a function

// Sometimes
Zi8.createUpload is not a function

// Other times
ho8.createUpload is not a function

From the console:

TypeError: W4.createUpload is not a function
    at Observable2._subscribe (sanity-plugin-mux-input.js?v=a6315abd:41466:24)
    at Observable2._trySubscribe (chunk-3BU6GJK6.js?v=eacdc285:37260:19)
    at chunk-3BU6GJK6.js?v=eacdc285:37254:115
    at errorContext (chunk-3BU6GJK6.js?v=eacdc285:37036:5)
    at Observable2.subscribe (chunk-3BU6GJK6.js?v=eacdc285:37252:5)
    at mergeInternals (chunk-3BU6GJK6.js?v=eacdc285:39169:10)
    at chunk-3BU6GJK6.js?v=eacdc285:39193:12
    at OperatorSubscriber3.<anonymous> (chunk-3BU6GJK6.js?v=eacdc285:37337:18)
    at chunk-3BU6GJK6.js?v=eacdc285:37254:42
    at errorContext (chunk-3BU6GJK6.js?v=eacdc285:37036:5)
Full stacktrace:
    at MuxVideoInputUploader (http://localhost:3333/node_modules/.sanity/vite/deps/sanity-plugin-mux-input.js?v=a6315abd:42473:5)
    at Suspense
    at n2 (http://localhost:3333/node_modules/.sanity/vite/deps/sanity-plugin-mux-input.js?v=a6315abd:39685:21)
    at http://localhost:3333/node_modules/.sanity/vite/deps/sanity-plugin-mux-input.js?v=a6315abd:39714:85
    at ErrorBoundaryCard (http://localhost:3333/node_modules/.sanity/vite/deps/sanity-plugin-mux-input.js?v=a6315abd:43435:5)
    at div
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at Box2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KBHL3AHZ.js?v=eacdc285:4658:9)
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at Fe (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26791:40)
    at ThemeProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KBHL3AHZ.js?v=eacdc285:3364:52)
    at ThemeColorProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KBHL3AHZ.js?v=eacdc285:3424:5)
    at Card2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KBHL3AHZ.js?v=eacdc285:5101:27)
    at Input (http://localhost:3333/node_modules/.sanity/vite/deps/sanity-plugin-mux-input.js?v=a6315abd:43631:18)
    at input
    at DefaultInput (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:115187:10)
    at input (http://localhost:3333/node_modules/.sanity/vite/deps/@sanity_document-internationalization.js?v=1f2b997e:3328:18)
    at div
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at Box2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:30711:9)
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at Grid2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:31527:9)
    at div
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at Box2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:30711:9)
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at fieldset
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at Box2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:30711:9)
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at Stack2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:33130:9)
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at FormFieldSet2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:106827:32)
    at FieldActionsProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:106115:11)
    at ObjectOrArrayField (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:108905:80)
    at DefaultField (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:115190:10)
    at CommentsField (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KS3H4AUJ.js?v=eacdc285:8932:21)
    at FormCallbacksProvider2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:105857:41)
    at ObjectField2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:107963:125)
    at MemberField2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:108199:11)
    at ObjectInputMember2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:108592:11)
    at ObjectInputMembers (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:108606:11)
    at div
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at Box2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:30711:9)
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at Stack2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:33130:9)
    at ObjectInput2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:114705:11)
    at DefaultInput (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:115187:10)
    at input (http://localhost:3333/node_modules/.sanity/vite/deps/@sanity_document-internationalization.js?v=1f2b997e:3328:18)
    at DocumentFieldActionsProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:106210:107)
    at FormValueProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:105765:86)
    at GetFormValueProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:105778:54)
    at HoveredFieldProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:106132:11)
    at ValidationProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:105960:83)
    at PresenceProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:105942:81)
    at DocumentIdProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:106157:80)
    at FormCallbacksProvider2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:105857:41)
    at FormBuilderProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:106175:36)
    at FormProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:106190:36)
    at FormBuilder (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:106221:36)
    at form
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at Box2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:30711:9)
    at div
    at div
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at RegionsWithIntersections2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:106500:11)
    at StickyOverlay (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:106578:11)
    at Tracker2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:97705:42)
    at OverlayEnabled (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:106628:9)
    at div
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at Box2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:30711:9)
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at Container2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:31512:9)
    at FormView2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KS3H4AUJ.js?v=eacdc285:12100:11)
    at div
    at ScrollContainer2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:98061:15)
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at VirtualizerScrollInstanceProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:108696:11)
    at BoundaryElementProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:31871:5)
    at PortalProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:32319:5)
    at div
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at Box2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:30711:9)
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at div
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at Box2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:30711:9)
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at Flex2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:30873:12)
    at div
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at Box2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:30711:9)
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at Fe (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26791:40)
    at ThemeProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:29504:52)
    at ThemeColorProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:29548:5)
    at Card2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:31201:27)
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at PaneContent2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KS3H4AUJ.js?v=eacdc285:1095:11)
    at DocumentPanel2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KS3H4AUJ.js?v=eacdc285:12173:11)
    at div
    at ScrollContainer2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:98061:15)
    at Tracker2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:97705:42)
    at EnabledChangeConnectorRoot (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:98352:9)
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at div
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at Box2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:30711:9)
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at Flex2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:30873:12)
    at DialogProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:34805:5)
    at div
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at Box2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:30711:9)
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at Flex2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:30873:12)
    at BoundaryElementProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:31871:5)
    at div
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at Box2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:30711:9)
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at Fe (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26791:40)
    at ThemeProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:29504:52)
    at ThemeColorProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:29548:5)
    at Card2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:31201:27)
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at LayerProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:32125:5)
    at LegacyLayerProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:124700:9)
    at Pane2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KS3H4AUJ.js?v=eacdc285:1015:11)
    at KeyboardShortcutResponder (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KS3H4AUJ.js?v=eacdc285:12463:11)
    at GetHookCollectionState (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:98867:18)
    at RenderActionCollectionState (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KS3H4AUJ.js?v=eacdc285:658:11)
    at http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KS3H4AUJ.js?v=eacdc285:12484:11
    at FieldActionsProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:106115:11)
    at DocumentLayout (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KS3H4AUJ.js?v=eacdc285:12657:194)
    at CommentsDocumentLayoutInner (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KS3H4AUJ.js?v=eacdc285:9029:11)
    at CommentsEnabledProvider2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KS3H4AUJ.js?v=eacdc285:8285:11)
    at CommentsDocumentLayout (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KS3H4AUJ.js?v=eacdc285:9025:11)
    at ReferenceInputOptionsProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:106262:11)
    at http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KS3H4AUJ.js?v=eacdc285:11542:11
    at DocumentPaneInner (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KS3H4AUJ.js?v=eacdc285:12713:11)
    at SourceProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:119601:9)
    at DocumentPane2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KS3H4AUJ.js?v=eacdc285:12708:38)
    at Suspense
    at PaneRouterProvider (http://localhost:3333/node_modules/.sanity/vite/deps/index-XY6SPKYs-HEFIHRGU.js?v=eacdc285:112:5)
    at DeskToolPane2 (http://localhost:3333/node_modules/.sanity/vite/deps/index-XY6SPKYs-HEFIHRGU.js?v=eacdc285:1092:5)
    at div
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at Box2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:30711:9)
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at Fe (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26791:40)
    at ThemeProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:29504:52)
    at ThemeColorProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:29548:5)
    at Card2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:31201:27)
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at PaneLayout (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KS3H4AUJ.js?v=eacdc285:1407:11)
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at PortalProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:32319:5)
    at DeskTool2 (http://localhost:3333/node_modules/.sanity/vite/deps/index-XY6SPKYs-HEFIHRGU.js?v=eacdc285:1291:5)
    at DeskToolProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KS3H4AUJ.js?v=eacdc285:11432:9)
    at SourceProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:119601:9)
    at ErrorBoundary (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:31970:5)
    at DeskToolBoundary (http://localhost:3333/node_modules/.sanity/vite/deps/index-XY6SPKYs-HEFIHRGU.js?v=eacdc285:1396:11)
    at Suspense
    at RouteScope (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:42588:5)
    at div
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at Box2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:30711:9)
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at Fe (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26791:40)
    at ThemeProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:29504:52)
    at ThemeColorProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:29548:5)
    at Card2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:31201:27)
    at ErrorBoundary (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:31970:5)
    at StudioErrorBoundary (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:121696:9)
    at div
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at Box2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:30711:9)
    at O2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26836:6)
    at Flex2 (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:30873:12)
    at StudioLayoutComponent (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:124199:34)
    at CommentsOnboardingProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KS3H4AUJ.js?v=eacdc285:8314:11)
    at CommentsSetupProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KS3H4AUJ.js?v=eacdc285:8634:11)
    at CommentsStudioLayout (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KS3H4AUJ.js?v=eacdc285:9043:147)
    at StudioLayout (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:124194:19)
    at ResourceCacheProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:102240:9)
    at I18nextProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:41447:5)
    at Suspense
    at LocaleProviderBase (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:124257:20)
    at LocaleProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:124253:107)
    at RouterProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:42636:5)
    at WorkspaceRouterProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:121844:9)
    at SourceProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:119601:9)
    at WorkspaceProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:119590:9)
    at WorkspaceLoader (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:121915:9)
    at ErrorBoundary (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:31970:5)
    at WorkspaceLoaderBoundary (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:121946:9)
    at AuthBoundary (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:121557:9)
    at UserColorManagerProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:99444:9)
    at LayerProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:32125:5)
    at Fe (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26791:40)
    at ThemeProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:29504:52)
    at StudioThemeProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:121687:9)
    at RouterHistoryProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:121341:9)
    at ActiveWorkspaceMatcherContextProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:121351:9)
    at ActiveWorkspaceMatcher (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:121357:9)
    at WorkspacesProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:121157:17)
    at ErrorBoundary (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:31970:5)
    at StudioErrorBoundary (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:121696:9)
    at ToastProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:35939:5)
    at Fe (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-HK2PCEOA.js?v=eacdc285:26791:40)
    at ThemeProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:29504:52)
    at ColorThemeProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:121596:9)
    at ColorSchemeLocalStorageProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:121610:9)
    at ColorSchemeProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:121603:9)
    at StudioProvider (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:121958:9)
    at Studio (http://localhost:3333/node_modules/.sanity/vite/deps/chunk-3BU6GJK6.js?v=eacdc285:124238:11)

I've tried different versions of the sanity-plugin-mux-input with different versions of sanity, but none of the following combinations have worked:

Hope this can help the debugging 🤞

EDIT: I can also add that the logs in the Mux dashboard indicates that the upload is initiated, but then cancelled through an API request. I guess this could indicate that there's something going on client side:

Screenshot 2024-01-08 at 14 09 08

EDIT 2: I found that v2.0.17 works with the newest version of Sanity (v3.23.4). So downgrading to this version could be a viable workaround while waiting for a solution to this.

@ApinisMikelis
Copy link

Had the same issue with v2.2.3, but upgrading to v2.2.4 solved it for me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants