Closed oskarengstrom closed 1 year ago
I just installed the plugin and got this error when import {internationalizedArray} from 'sanity-plugin-internationalized-array' in sanity.config.js:
import {internationalizedArray} from 'sanity-plugin-internationalized-array'
sanity.config.js
[1] ✘ [ERROR] No matching export in "node_modules/sanity/lib/index.esm.js" for import "defineDocumentFieldAction" [1] [1] node_modules/sanity-plugin-internationalized-array/lib/index.esm.js:1:215: [1] 1 │ ...ient,useFormBuilder,defineDocumentFieldAction,useFormValue,set,A... [1] ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~ [1] [1] 10:18:01 AM [vite] error while updating dependencies: [1] Error: Build failed with 1 error: [1] node_modules/sanity-plugin-internationalized-array/lib/index.esm.js:1:215: ERROR: No matching export in "node_modules/sanity/lib/index.esm.js" for import "defineDocumentFieldAction"
Versions: "sanity": "^3.10.3", "sanity-plugin-internationalized-array": "^1.10.3",
Could you try wiping node_modules and installing again?
I am also receiving this error @SimeonGriggs - deleted node_modules and reinstalled but no difference.
I just installed the plugin and got this error when
import {internationalizedArray} from 'sanity-plugin-internationalized-array'
insanity.config.js
:Versions: "sanity": "^3.10.3", "sanity-plugin-internationalized-array": "^1.10.3",