ndimatteo / HULL

πŸ’€ Headless Shopify Starter – powered by Next.js + Sanity.io
https://hull.dev
MIT License
1.36k stars 167 forks source link

floating-ui.dom.esm.js sanity build issue #114

Closed deviomedia closed 1 year ago

deviomedia commented 1 year ago

Problem with building the studio. This happens without any previous changes so I guess its related to a package thats been used.

Error in ./node_modules/@floating-ui/dom/dist/floating-ui.dom.esm.js Module parse failed: Unexpected token (307:11) You may need an appropriate loader to handle this file type. }
return { ...rect,
x: rect.x - scroll.scrollLeft + offsets.x,
y: rect.y - scroll.scrollTop + offsets.y
kasperbirch1 commented 1 year ago

It sounds like the same issue here. https://github.com/ndimatteo/HULL/issues/110

alfredoLipari commented 1 year ago

Same here, I am unable to deploy on vercel a brand new one template

Rosewives commented 1 year ago

It's the same issue in issue-#110

You can change "sanity-plugin-note-field": "^1.1.4", to πŸ‘‰πŸ»"sanity-plugin-note-field": "1.4.13",πŸ‘ˆπŸ» to solve it. Hope this helps.

ndimatteo commented 1 year ago

@Rosewives you're mentioning the wrong plugin, it's the sanity-plugin-media that you will need to update, not the note-field plugin.

@alfredoLipari @deviomedia please try updating with:

yarn add sanity-plugin-media@1.4.13
Rosewives commented 1 year ago

@Rosewives you're mentioning the wrong plugin, it's the sanity-plugin-media that you will need to update, not the note-field plugin.

@alfredoLipari @deviomedia please try updating with:

yarn add sanity-plugin-media@1.4.13

Thanks @ndimatteo for the correction, I just realized I referred to a wrong plugin.

@alfredoLipari @deviomedia Just rewrite the line 30 of this file "HULL/studio/package.json", change it from "sanity-plugin-media": "^1.4.0", to "sanity-plugin-media": "1.4.3", , then the issue would be solved.

ndimatteo commented 1 year ago

I just pushed up some changes which included updating packages for the studio ✨

I was able to install and run it without any build errors so I'm going to close this, but if anything comes up please open a new issue. Thanks, everyone! 🀘