You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any security issues should be submitted directly to security@sanity.io. In order to determine whether you are dealing with a security issue, ask yourself these two questions:
Can I access something that's not mine, or something I shouldn't have access to?
Can I disable something for other people? If the answer to either of those two questions are "yes", then you're probably dealing with a security issue. Note that even if you answer "no" to both questions, you may still be dealing with a security issue, so if you're unsure, just email us at [security@sanity.io](mailto:security@sanity.io.
The text was updated successfully, but these errors were encountered:
Apologies for this - we mistakenly exposed these types previously - we recommend you install and migrate to using types from @portabletext/types: https://portabletext.github.io/types/
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.
If you find a security vulnerability, do NOT open an issue. Email security@sanity.io instead.
Describe the bug
Showcase template build is broken when upgrading from 3.0.6 to 3.1.2.
Type error: Module '"sanity"' has no exported member 'Block'.
To Reproduce
Steps to reproduce the behavior:
npm run build
npm i
installed sanity 3.0.6)Repro option 1:
6.
yarn
(automatically updates to sanity 3.1.2)7.
yarn build
ornpm run build
8. See error:
Option 2:
5. Edit package.json to update sanity to 3.1.2
6.
yarn build
ornpm run build
7. See same error as above.
Expected behavior
Build should succeed as 3.1.2 should be backwards-compatible with 3.0.6, or at least required changes should be documented clearly.
Screenshots
N/A
Which versions of Sanity are you using?
see above for versions in build
@sanity/cli 2.35.0 (latest: 3.1.2)
@sanity/demo 1.0.1 (up to date)
@sanity/image-url 1.0.1 (up to date)
@sanity/vision 3.0.2 (latest: 3.1.2)
What operating system are you using?
MacOS 13.1
Which versions of Node.js / npm are you running?
Run
npm -v && node -v
in the terminal and copy-paste the result here.8.19.2
v18.12.1
Additional context
Issue reported on template git site
Security issue?
No.
Any security issues should be submitted directly to security@sanity.io. In order to determine whether you are dealing with a security issue, ask yourself these two questions:
The text was updated successfully, but these errors were encountered: