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
🔄 Reloading...
🥚 message TS6194: Found 0 errors. Watching for file changes.
!! Prettier: Error formatting "/Users/marcuswood/moonshots/packages/extension/src/entrypoints/popup/recordingLogicType.ts"
require() of ES Module /Users/marcuswood/moonshots/node_modules/prettier-plugin-tailwindcss/dist/index.mjs not supported.
Instead change the require of /Users/marcuswood/moonshots/node_modules/prettier-plugin-tailwindcss/dist/index.mjs to a dynamic import() which is available in all CommonJS modules.
🔥 Writing: src/entrypoints/popup/recordingLogicType.ts
If you update you'll see this:
👀 Starting TypeScript watch mode
🥚 message TS6194: Found 0 errors. Watching for file changes.
prettier version: 3.4.2
/Users/marcuswood/moonshots/node_modules/yargs/yargs.js:1172
else throw err
^
TypeError: prettier.resolveConfig.sync is not a function
You can only use async methods for prettier now. Looked at the code and we'd need to async all the way up the callstack since it's sync atm.
Expected behavior
No prettier errors on typegen using the latest version of prettier
Environment
"kea-typegen": "3.3.4",
"kea": "3.1.6",
"prettier": "3.4.2"
Additional context
The text was updated successfully, but these errors were encountered:
Bug description (include screenshots or a GIF screencast)
I think Prettier needs to be bumped in order to avoid an ESM bug. Should be a peer dep instead?
See this issue for more details: tailwindlabs/prettier-plugin-tailwindcss#207
If you update you'll see this:
You can only use async methods for prettier now. Looked at the code and we'd need to async all the way up the callstack since it's sync atm.
Expected behavior
No prettier errors on typegen using the latest version of prettier
Environment
Additional context
The text was updated successfully, but these errors were encountered: