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

Sanity build failure (v2 branch) #17

Open
m-shum opened this issue Nov 26, 2022 · 0 comments
Open

Sanity build failure (v2 branch) #17

m-shum opened this issue Nov 26, 2022 · 0 comments

Comments

@m-shum
Copy link

m-shum commented Nov 26, 2022

Description

sanity deploy fails at build after installing package using npm i https://github.com/sanity-io/sanity-plugin-cloudinary

Steps to reproduce

Run npm i https://github.com/sanity-io/sanity-plugin-cloudinary
Add to plugins in sanity.json
Run sanity deploy

Error

Error: Errors while building:
./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
 @ ./node_modules/react-select/dist/react-select.esm.js 24:0-26
 @ ./node_modules/sanity-plugin-media/dist/components/SearchFacetTags/index.js
 @ ./node_modules/sanity-plugin-media/dist/components/SearchFacets/index.js
 @ ./node_modules/sanity-plugin-media/dist/components/Controls/index.js
 @ ./node_modules/sanity-plugin-media/dist/components/Browser/index.js
 @ ./node_modules/sanity-plugin-media/dist/app.js
 @ ./node_modules/sanity-plugin-media/dist/index.js
 @ ./node_modules/sanity-plugin-media/dist?sanityPart=all%3Apart%3A%40sanity%2Fbase%2Ftool
 @ ./node_modules/@sanity/default-layout/lib/util/getRegisteredTools.js
 @ ./node_modules/@sanity/default-layout/lib/router.js
 @ ./node_modules/@sanity/default-layout/lib/Root.js?sanityPart=part%3A%40sanity%2Fbase%2Froot
 @ ./node_modules/@sanity/base/lib/components/SanityRoot.js?sanityPart=part%3A%40sanity%2Fbase%2Fsanity-root
 @ ./node_modules/@sanity/server/lib/browser/entry.js
 @ multi ./node_modules/@sanity/server/lib/browser/entry.js
    at buildStaticAssets (~/Sites/portfolio-cms/node_modules/@sanity/core/lib/actions/build/buildStaticAssets.js:131:13)
    at async _default (~/Sites/portfolio-cms/node_modules/@sanity/core/lib/actions/deploy/deployAction.js:93:9)
    

Notes

This build was created using npm as its package manager. Migrating to yarn would cause breaking changes. Any advice would be much appreciated!

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

No branches or pull requests

1 participant