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

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

Closed
deviomedia opened this issue Nov 29, 2022 · 6 comments
Closed

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

deviomedia opened this issue Nov 29, 2022 · 6 comments
Labels
duplicate This issue or pull request already exists

Comments

@deviomedia
Copy link

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
Copy link

It sounds like the same issue here.
#110

@alfredoLipari
Copy link

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

@Rosewives
Copy link

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
Copy link
Owner

@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

@ndimatteo ndimatteo added the duplicate This issue or pull request already exists label Dec 2, 2022
@Rosewives
Copy link

@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
Copy link
Owner

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! 🤘

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

5 participants