Open leeuwd opened 3 weeks ago
In addition, the import:
TS1479: The current file is a CommonJS module whose imports will produce require calls; however, the referenced file is an ECMAScript module and cannot be imported with require. Consider writing a dynamic import(@sanity/code-input)' call instead.
To convert this file to an ECMAScript module, change its file extension to .mts, or add the field `type: module` to
Describe the bug
I'm encountering a type error when using the
codeInput()
function in my Sanity configuration file (sanity.config.ts
).Error
Which versions of Sanity are you using?
What operating system are you using?
macOS
Which versions of Node.js / npm are you running?
Additional context
Turborepo monorepo.