Comments (4)
Hi Juice49, thanks for your information. My typescript version is older than 5.0.0. After the upgrade, this error disappeared. But I met other issues. I think we can close this issue. Upgrading is the solution. Thanks again!
Hi Li. It looks like you may have a version of TypeScript prior to
5.0.0
. This version added support for constant type parameters, the usage of which is causing the error:768 | */ 769 | export declare function defineArrayMember< > 770 | const TType extends IntrinsicTypeName | AutocompleteString,
Please can you check the version of TypeScript installed in your project (
npm ls typescript
). If it's prior to5.0.0
, please can you try updating it?
from sanity.
Hi Li. It looks like you may have a version of TypeScript prior to 5.0.0
. This version added support for constant type parameters, the usage of which is causing the error:
768 | */
769 | export declare function defineArrayMember<
> 770 | const TType extends IntrinsicTypeName | AutocompleteString,
Please can you check the version of TypeScript installed in your project (npm ls typescript
). If it's prior to 5.0.0
, please can you try updating it?
from sanity.
@shenli You're welcome!
from sanity.
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.
from sanity.
Related Issues (20)
- Updates cause error on slow network - getAttribute only applies to plain objects
- Sanity 3.52.2 RollupError: "FieldPresenceWithOverlay" is not exported by "node_modules/sanity/lib/index.mjs" for sanity-plugin-icon-manager HOT 1
- Referenced document won't open in group tab. HOT 6
- Seemingly unpredictable syntax errors when running codegen.
- "Review changes" pane is not showing diffs
- [Docs] Vision Plugin - Example in docs need update, since Desk is now Structure
- PortableText "inline blocks" style bug HOT 1
- Sanity studio does not enable the Publish button when treeArrayEditing is active HOT 2
- Refresh document locations on editing fields
- [Typegen error] - Undefined namespace: geo HOT 2
- Image field causes layout shifts when opening a document
- Type error in Sanity Client index.d.ts:1330:5 while deploying with vercel HOT 6
- Radio button in PortableText annotation causes popups to disappear in Safari
- Can't open referenced items in grouped views HOT 2
- Presentation tool crashes with Contributor role
- Unable to connect to visual editing in Sanity with Nuxt on Vercel
- Querying images from the Content Lake returns the wrong type HOT 5
- Certain projections in the Structure Builder's filter() method cause certain updates to not happen on document lists HOT 2
- Immutable fields in the new Copy-Paste feature HOT 2
- [Sanity Typegen]: Support wild-card (*) imports when constructing queries
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sanity.