-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parser error when using TypeScript 4.7 Instantiation Expressions #156
Comments
Workaround (via #141):
"resolutions": {
"@trivago/prettier-plugin-sort-imports/**/@babel/parser": "7.18.5"
} |
I made pull request for this: #161. |
* Update prettier to latest * Add format command * Create .prettierignore * Add prettier plugin sort imports * Update prettier config * Update prettier config * Update .prettierignore * Fix @babel/parser conflict trivago/prettier-plugin-sort-imports#156 * Revert "Update .prettierignore" This reverts commit 282e5b8. * Revert change for apps/www/pages/v/[id].tsx * Sort imports Moves the third party imports to the top, "~" imports in middle, and "./" at last * Sorting of the specifiers in an import declarations * [www] use path vs "../" * [core] use path "~" vs "../" * [tldraw] use path "~" vs "../.../" * [tldraw] use path "~" vs "../" * [tldraw] Cleanup * Update prettier config * Last use path "~" vs "../.../" * [www] Fix order of the third party imports * Clean prettier config
* [improvement] Add `getContent` and `insertContent` methods (tldraw#726) * Add insertContent method, update copyJson * Add more tests * Update TldrawApp.spec.ts * Adds option object for select, point, and uses in paste * 1.17.0 * Add overwrite option to insertContent (tldraw#730) * fix clipboard.read error on Firefox (tldraw#729) See more @ https://stackoverflow.com/questions/67440036/navigator-clipboard-readtext-is-not-working-in-js/67442777#67442777 * 1.7.2, add Vec.distanceTo / Vec.nearestPointOnBounds * Update Vec * Update MultiplayerMenu.tsx * Update MultiplayerMenu.tsx * 1.17.2 * Adding Arabic Language (tldraw#732) * Create ar.json * Update Tldraw.tsx * Update types.ts * Update LanguageMenu.tsx * Update Tldraw.tsx * Update LanguageMenu.tsx * [fix] bug with images that have the same name (tldraw#743) * add unique id to file names to avoid name clashes * Add event callbacks for `onSessionStart` and `onSessionEnd` * arrows ignore locked shapes (tldraw#745) * Upgrade Liveblocks to 0.17 (tldraw#738) * Upgrade Liveblocks packages to 0.17 * Convert app to recommended Liveblocks 0.17 setup * Convert multiplayer example to recommended Liveblocks 0.17 setup * Convert multiplayer-with-images example to recommended Liveblocks 0.17 setup * Fix React rendering issue for multiplayer app This bug could manifest after _navigating_ internally to the Multiplayer example app. Liveblocks Storage would seem to remain empty, but Presence would still seem to work. In other words, you'd see cursors flying, but no document contents. This did not happen when doing a full page load. This bug only occurs in React strict mode. * update onPatch and onCommand * "Add event callbacks for `onSessionStart` and `onSessionEnd`" * Adds edit state * Pass callbacks to app * Remove console logs * interpolate cursor only when not in session * Update multiplayer icon * Fix a few things Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * add translation guide (tldraw#746) * update example * 1.18.0 * Update translation.md * Bump electron from 17.0.0 to 17.2.0 (tldraw#749) Bumps [electron](https://github.com/electron/electron) from 17.0.0 to 17.2.0. - [Release notes](https://github.com/electron/electron/releases) - [Changelog](https://github.com/electron/electron/blob/main/docs/breaking-changes.md) - [Commits](electron/electron@v17.0.0...v17.2.0) --- updated-dependencies: - dependency-name: electron dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump electron from 17.0.0 to 17.2.0 in /apps/electron (tldraw#748) Bumps [electron](https://github.com/electron/electron) from 17.0.0 to 17.2.0. - [Release notes](https://github.com/electron/electron/releases) - [Changelog](https://github.com/electron/electron/blob/main/docs/breaking-changes.md) - [Commits](electron/electron@v17.0.0...v17.2.0) --- updated-dependencies: - dependency-name: electron dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump next-auth from 4.3.3 to 4.5.0 (tldraw#747) Bumps [next-auth](https://github.com/nextauthjs/next-auth) from 4.3.3 to 4.5.0. - [Release notes](https://github.com/nextauthjs/next-auth/releases) - [Changelog](https://github.com/nextauthjs/next-auth/blob/main/CHANGELOG.md) - [Commits](https://github.com/nextauthjs/next-auth/compare/next-auth@v4.3.3...next-auth@v4.5.0) --- updated-dependencies: - dependency-name: next-auth dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * feat: add korean translation (tldraw#752) * feat: add korean translation * chore: fix typo * chore: fix typo (tldraw#753) * Fix bugs - local server bug - improve types for translations - fix missing italian translation - fix double ungroup label * Add locked indicator * refactor translations * Update translation.md * Update translation.md * rename translations * Japanese translation (tldraw#756) * Japanese translation * fix: replace empty string to space. * fix: improve Japanese * Add norwegian translation (tldraw#757) * feat: add norwegian translation * arrange text in alphabetical order * sort by code * rename en.json to main.json Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * feat: spanish language (tldraw#755) * feat: spanish language * Update translations.ts Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * Turkish Language (tldraw#754) * Turkish Language Added * Turkish changed to Türkçe * Update translations.ts Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * Polish translations (tldraw#758) * polish translations * translations guide typo fix * 1.18.1 * Improve UX for renaming text fields (tldraw#761) * Update DrawSession.ts (tldraw#762) * Add Nepali translation (tldraw#760) * Add nepali language json * Add nepali translation * fix: add `preventDefault` (tldraw#764) * fix: correct translation term (tldraw#763) * feat: spanish language * Update translations.ts * fix: correct translation term Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * Added translations to Portuguese (pt-br) (tldraw#759) * Added translations to Portuguese (pt-br) * Update translations.ts Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * Added Danish translation (tldraw#765) * Update TldrawApp.ts (tldraw#766) * Added page rearranging by dragging (desktop only) (tldraw#768) * Added page rearranging by dragging (desktop only) * Increment page names correctly, create drop indicator Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * Translation german (tldraw#771) * Translated to German Translated the page to German. There may be some inaccurate translations, because some phrases depend on context i.e. "to fit" or "binding handles", but it is comprehensible in German. * Update de.json * fix bugs on page move Update TldrawApp.ts * Update PageMenu.tsx * Update PageMenu.tsx * 1.18.2 * Update PageMenu.tsx * Translation german (tldraw#772) * Translated to German Translated the page to German. There may be some inaccurate translations, because some phrases depend on context i.e. "to fit" or "binding handles", but it is comprehensible in German. * Update de.json * Update de.json Updated some translations with respect to their context Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * new tab extension (tldraw#773) * Add new tab extension * Update package.json * Update package.json * Update screenshot / manifest * Delete dist.crx * prevent escape from undoing text change * 1.18.3 * Add Farsi translations (tldraw#778) * Add Farsi translations * fix translations.ts * Update translations.ts Co-authored-by: Saeed Alipoor <alipoor.sa@gmail.com> Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * Add a Russian translation (tldraw#777) * Add Russian translation * Update translations.ts Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * Revise the Russian translation (tldraw#784) I'm sorry for not catching some unnatural-sounding strings in it earlier, but I guess it's better late than never. * Implemented better page numbering (tldraw#779) * Implemented better page numbering * Added spanish and french translation * Add tests, fix regex * Improve page naming logic Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * 1.19.0 (tldraw#789) * Edit Farsi translations (tldraw#788) * Add a Ukrainian translation (tldraw#786) * Add a Ukrainian translation * Clarify some strings in the Ukrainian translation * feat: change dock position (tldraw#774) * feat: change dock position * fix grid row and column * add top position * fix responsive for the top position * change content side * fix overflowing menu * [improvement] theme on body (tldraw#790) * Update Tldraw.tsx * Add theme on body, adjust dark page options dialog * fix test * Preparing for global integration (tldraw#775) * Update translations.ts * Create en.json * Make main translation default * Remove unused locale property of translation Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * Fix language menu * Update ar.json (tldraw#793) * feature/add Hebrew translations (tldraw#792) * hebrew translations * pr fixes Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * fix toolspanel item position (tldraw#791) * fix toolspanel item position * add translation Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * Add remote caching * Adds link to translation guide (tldraw#794) Co-authored-by: Baahar Ebrahimi <108254874+Baahaarmast@users.noreply.github.com> Co-authored-by: walking-octopus <46994949+walking-octopus@users.noreply.github.com> Co-authored-by: Judicael <46365844+judicaelandria@users.noreply.github.com> Co-authored-by: Ali Alhaidary <75235623+ali-alhaidary@users.noreply.github.com> Co-authored-by: gadi246 <gadi246@gmail.com> * 1.19.0 * 1.20.0 (tldraw#797) * Edit Farsi translations (tldraw#788) * Add a Ukrainian translation (tldraw#786) * Add a Ukrainian translation * Clarify some strings in the Ukrainian translation * feat: change dock position (tldraw#774) * feat: change dock position * fix grid row and column * add top position * fix responsive for the top position * change content side * fix overflowing menu * [improvement] theme on body (tldraw#790) * Update Tldraw.tsx * Add theme on body, adjust dark page options dialog * fix test * Preparing for global integration (tldraw#775) * Update translations.ts * Create en.json * Make main translation default * Remove unused locale property of translation Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * Fix language menu * Update ar.json (tldraw#793) * feature/add Hebrew translations (tldraw#792) * hebrew translations * pr fixes Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * fix toolspanel item position (tldraw#791) * fix toolspanel item position * add translation Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * Add remote caching * Adds link to translation guide (tldraw#794) * Update ar.json (tldraw#795) * [feature] readonly link (tldraw#796) * Copy readonly link * Update [id].tsx * Add readonly label * update psuedohash * Update utils.ts Co-authored-by: Baahar Ebrahimi <108254874+Baahaarmast@users.noreply.github.com> Co-authored-by: walking-octopus <46994949+walking-octopus@users.noreply.github.com> Co-authored-by: Judicael <46365844+judicaelandria@users.noreply.github.com> Co-authored-by: Ali Alhaidary <75235623+ali-alhaidary@users.noreply.github.com> Co-authored-by: gadi246 <gadi246@gmail.com> * add dock position to migrate, cleanup code * Update MultiplayerMenu.tsx * Fix link * Update utils.ts * Update main.json * Fix panel position on mobile * 1.19.1 * [feature] Iframe warning (tldraw#800) * erp * Update ToolsPanel.tsx * Restore fixes * fix browser zoom while editing text (tldraw#802) * [fix] hydration bug in iframe (tldraw#813) * Fixes hydration bug in iframe * Update [id].tsx * Update ar.json (tldraw#815) * Create zh-tw.json (tldraw#811) * Create zh-tw.json * Update translations.ts * new strings * feat: add "Back to content" missing translation (tldraw#809) * feat: add "Back to content" missing translation * fix: style * reverted of translations except for main.json and fr * Prefer declarative use with an html element * Update ar.json (tldraw#821) * feat: add new french translation (tldraw#820) * [fr] add new translations * Remove duplicate (page) * fix: paste unicode (tldraw#819) * fix: paste unicode * fix unicode * use html element to unencode * Move to insertContent Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * example(ui-options): starting to render custom UI (tldraw#804) * example(ui-options): starting to render custom UI * Add app context * Update ui-options.tsx Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * Fix broken link for the translation guide (tldraw#824) * Fix flips (tldraw#829) * [Fix] French translation (tldraw#825) * Only the first letter in capital * Spelling corrections * Correction of wrong translations * Best common translation * Specify the direction of rotation * Translate to French * Better translation for this actions * Revert to preferring the use of "zoom" * It's better to know on what it acts * Missing of hyphen * Better for user focus - It's better for the user focus to not use the same action verb for two opposite actions (to.front/to.back) - Specifies the unit of motion for (forward/backward) * Removes the direction of rotation * Better alternative for copy/export as Also, this indicates that we will be able to choose the file format when copying/exporting. * feat: Added translation for "loading..." (tldraw#823) * Added translation for "loading..." * Resolve Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * feat: add help panel (tldraw#816) * feat: add help panel * feat: added all the shortcuts and responsive * improve help panel * add modal for the shortcut * add grid * fix language menu * add responsive grid * Styling keyboard shortcuts / panel * fix links ts issue * Improve styling * Fix translation bug Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * Update Loading.tsx * Update Loading.tsx * Update ar.json (tldraw#831) * fix: remove text label gap (tldraw#834) * [fix] label (tldraw#836) * fix label * Update ArrowUtil.tsx * Feature/upload multiple media (tldraw#830) * fix-spanish-translation (tldraw#840) * Add translation in keyboard shortcut (tldraw#838) * Update ar.json (tldraw#841) * replace image icon with radix icon (tldraw#843) * fix: translation key (tldraw#844) * feat: export background config (tldraw#839) Co-authored-by: JStuve <josh.stuve@gmail.com> Co-authored-by: Judicael <46365844+judicaelandria@users.noreply.github.com> * [fix] mobile layout (tldraw#845) * fix buttons on ios size * Update ToolButton.tsx * [improvement] Quality and UI cleanup (tldraw#846) * remove sponsors, ui cleanup * fix radius * improve panel * remove cursor spline animations * migrate options * Switch hrs to divider * fix text color on menu dark mode * Remove option for clone handles * fix wheel * remove unused translations * fix icon bg * 1.20.0 * Update ar.json (tldraw#847) * Update ar.json * Update ar.json * remove unnecessary translation we don't need to translate github, twitter and discord Co-authored-by: Judicael <46365844+judicaelandria@users.noreply.github.com> * update radix ui primitives (tldraw#842) * Add events to connections * chore: clean up local dev tooling (tldraw#856) * chore: clean up husky + lint-staged * chore: format all files with prettier * chore: improve linting (tldraw#855) * chore(lint): upgrade typescript-eslint * chore(lint): add root "lint" script * chore(turbo): remove build dependency from lint * chore(lint): enable jest recommended rules * chore(lint): resolve errors * ci: add lint step * prettier Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * fix: prevent deleting shape in session (tldraw#853) * chore: remove tsconfig.tsbuildinfo from git (tldraw#854) * remove gtag * chore: remove unused lerna.json (tldraw#865) * Feat: update french translations (tldraw#863) * [fr] Updated french translations * [fr] Fix "export.background" * [fr] Fix remove socials * chore: remove typedoc and docs scripts (tldraw#864) * Fix: workflow failure with missing lint command and added lint for apps/examples (tldraw#866) * Add turbo run lint * Add lint to all apps and examples * Update eslint with monorepo configuration see: https://typescript-eslint.io/docs/linting/typed-linting/monorepos#one-tsconfigjson-per-package-and-an-optional-one-in-the-root * Remove unused rules * Exclude @tldraw/www from global eslint config * Remove duplicated eslint * Fix eslint prefer-const errors * Fix eslint no-unused-vars warning * Update package.json * Fix eslint no-unused-vars warning * bump eslint@^8.20.0 * Correct "Fix eslint no-unused-vars warning" This reverts commit 0158a25. * Fix: no-unused-vars and remove eslint-disable in files (tldraw#862) * Fix eslint no-unused-vars * Remove eslint-disable in files * Chore: clean up sort imports with prettier (tldraw#870) * Update prettier to latest * Add format command * Create .prettierignore * Add prettier plugin sort imports * Update prettier config * Update prettier config * Update .prettierignore * Fix @babel/parser conflict trivago/prettier-plugin-sort-imports#156 * Revert "Update .prettierignore" This reverts commit 282e5b8. * Revert change for apps/www/pages/v/[id].tsx * Sort imports Moves the third party imports to the top, "~" imports in middle, and "./" at last * Sorting of the specifiers in an import declarations * [www] use path vs "../" * [core] use path "~" vs "../" * [tldraw] use path "~" vs "../.../" * [tldraw] use path "~" vs "../" * [tldraw] Cleanup * Update prettier config * Last use path "~" vs "../.../" * [www] Fix order of the third party imports * Clean prettier config * Add clean script to apps and examples (tldraw#869) * fix help icon size on mobile (tldraw#873) * fix help icon size on mobile * Fix menu closing on mobile * Fix position of help button * Remove variants * Update HelpPanel.tsx Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * remove deps * bump version * Feat/flip group shape (tldraw#876) * feat: flip group shape when it's only selected * fix undefined object * add test for flipping grouped shape * fix conflict * Fix remove unused prop (tldraw#880) * fix: toggle focus click and kbd (tldraw#881) * fix pasting svg from clipboard (tldraw#884) * fix: text shape in svg (tldraw#886) * Chore: command format prettier run, yarn workspace run, build run ! (tldraw#882) * Add custom package without @babel dependencies The @ggallon/prettier-plugin-sort-imports@^3.4.2-canary.0" have only peer dependencies * Update .prettierignore * [chore] epic purge (tldraw#893) * remove extension / electron app * switch examples to vite * Update licenses * Add script * fix titles * More cn translations (tldraw#889) * add more cn translations * add i18 for 'Image' tooltip * fix typo * update yarn.lock, clean some deps * Chore: update and optimize turbo (tldraw#885) * Update turbo to latest * Update turbo.json * The --stream flag has been deprecated * Remove unused start:all * build:packages -> use new --filter * build:apps -> use new --filter * build:www -> use new --filter * build:core -> use new --filter * build -> fix tldraw-example dependencies * Optimize test* and lint * start & start:core -> use new --filter * start:electron -> use new --filter * Remove unused start:apps * Update turbo.json * Caching ESLint See Pro Tip : https://turborepo.org/docs/core-concepts/caching#configuring-cache-outputs * Optimize test:watch * start:www -> use new filter * start:vscode -> use new filter * Update build:core * Optimize start and start:core * Clean build:core * Remove unused command * Revert "Merge branch 'main' into chore/update-turbo" This reverts commit a481c24, reversing changes made to a0f2f33. * Update start:electron * Remove unused deploy in turbo.json * Add start:extension * Add package:electron and package:vscode * Add publish:vscode * Revet Revert: revert "Merge branch 'main' into chore/update-turbo" * Update vscode extension build * Clean tldraw-example tsconfig.json * Uniform script commands * Fix start for www * remove mention of removed packages * add build:core * Add force to build step Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * Create Swedish translation (tldraw#899) * Create Swedish translation * Add Swedish translation to translations.json Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * Update ports / start:core * Another attempt at making use of the `browser-fs-access` npm package directly (tldraw#894) * Fight with TypeScript * Make TypeScript happy(?) * Apply suggestions from code review Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com> * Update yarn.lock * Fix favicons Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com> Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * fix: more fitting translations (tldraw#900) * fix: text align in a shape on export (tldraw#914) * fix: text align in a shape on export * force align type to Start for labels Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * Fix tooltips for buttons under `ActionButton` being partially covered by superseding buttons (tldraw#911) * made Tooltip wrap ToolButton instead of the other way around for items in ActionButton * removes unnecessary icon variant * Add tooltips to align/distribute Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * exit dialog when pressing enter (tldraw#906) * feat: replace window confirm with a dialog (tldraw#898) * feat: replace window confirm with react dialog * add dialog provider * export func * remove unused code * changes * Create file_open.tldr * Update TldrawApp.ts * clean, and add description * add a custom container for alert dialog * Fix fonts * Fix logic for open project * Style panel * Improve styling Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * Pagename i18 support (tldraw#907) * add i18 support for page * add more cn translations * feat: share via link * share project and current page * fix message id * remove broken electron link (tldraw#918) * fix load document * refix the load document from URL * remove unused code * use loadDocument for project link * fix: move group when flipping * move grouped shape when flipping * dialog i18 support (tldraw#915) * fix: shape parent id on duplicate page (tldraw#920) * fix: undo, redo, add shape to tree * feat: flip group shape * Create European Portuguese translation (tldraw#934) * fix: change Swedish translation (tldraw#933) * Change value of FontStyle.Serif from "erif" to "serif" (tldraw#929) * [chore] Assorted small improvements to docs (tldraw#928) * Remove leftover references to removed Electron app (Experimental Electron app was purged in tldraw#893) * Correct thanking organization in CONTRIBUTING.md * Remove reference to pressure (ease) in Vec.pointsBetween description Used to have an "ease" param, removed in tldraw#163 * Make links to core examples from core/README.md more explicit * Update translation label for chinese (tldraw#926) * feat: use system theme by default (tldraw#932) * feat: use system theme by default * Move logic to default prop Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * add alert dialog for alert in share button * use intl for description * update alert dialog text * [fix] text to svg (tldraw#936) * rewrite export text logic * Update tests * Update getTextSvgElement.ts * Update getTextSvgElement.ts * improve line breaking * labels + arrows * small offset for padding * Fix string bug * 1.21.1 * feat: save project as (support for firefox and safari) * add default value for filename * feat: add rename file dialog * remove comment * wait for the app to be ready and load docs * change function name, and useffect dep * generate new snapshot * add default value to file name, extension file * Fix vscode dev script * Update vscode extension (tldraw#942) * 1.22.0 * fix: use location origin * Remove share menu (tldraw#946) * Remove share menu * Delete ShareMenu.tsx * Remove alert, etc * 1.22.1 * Add ids to title on multiplayer rooms * fix: draw and eraser direction when holding shift (tldraw#958) * Fix reversed zoom in and zoom out (tldraw#956) Fixes #954 * prevent pasting while panning with the middle mouse button on linux (tldraw#953) * fix: fix text align in a shape on export (tldraw#952) * fix: fix text align in a shape on export * remove unused import * fix text alignment * [improvement] faster svg paths (tldraw#959) * improve svg paths * split methods add tldraw 1.2.0 * fix and complete russian traslation (tldraw#948) * Use id as assetId (tldraw#949) * feat: change cursor when panning (tldraw#939) * feat: change icon when panning * add support for panning with the middle mouse * Remove state at top tldraw * logic tweaks * accept middle clicks on objects * Update useCursor.ts Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * fix: include assets when importing document (package tldraw) (tldraw#950) * fix: include asset when importing document * defensive tweak * fixey back Co-authored-by: Steve Ruiz <steveruizok@gmail.com> * 1.22.0 * Update useCursor.ts * [chore] remove mobx (tldraw#961) * remove mobx as dependency * fix bugs * Update package.json (tldraw#962) * 1.24.0 * [fix] Buttons (tldraw#964) * fix buttons * update dependencies * 1.24.1 * hot fix * 1.24.3 * fix (tldraw#968) * Update KeyboardShortcutDialog.tsx * 1.24.4 * Fix postinstall * yarn wip * remove radix stuff again * fix radix dependencies + merge fails Co-authored-by: Steve Ruiz <steveruizok@gmail.com> Co-authored-by: Jack Bauer <2308123+dmx974@users.noreply.github.com> Co-authored-by: Ali Alhaidary <75235623+ali-alhaidary@users.noreply.github.com> Co-authored-by: Vincent Driessen <me@nvie.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: cog25 <74242561+cog25@users.noreply.github.com> Co-authored-by: Sugit <sgmt.snj@gmail.com> Co-authored-by: Sigve Hansen <sighan12@gmail.com> Co-authored-by: Juan Carlos Acosta Perabá <juancarlos.ap.dev@gmail.com> Co-authored-by: Oğuzhan Durgut <59341039+odurgut@users.noreply.github.com> Co-authored-by: Daniel Alberski <33758694+adan2013@users.noreply.github.com> Co-authored-by: pramitmarattha <pramitmarattha5497@gmail.com> Co-authored-by: Mark Ladyshau <47859603+mrkldshv@users.noreply.github.com> Co-authored-by: Victor Novais <vicnovais@gmail.com> Co-authored-by: Anders Bech Mellson <mellson@icloud.com> Co-authored-by: Enrico <39310565+Leone25@users.noreply.github.com> Co-authored-by: Jan Bessler <64578396+Jaybee18@users.noreply.github.com> Co-authored-by: Baahar Ebrahimi <108254874+Baahaarmast@users.noreply.github.com> Co-authored-by: Saeed Alipoor <alipoor.sa@gmail.com> Co-authored-by: walking-octopus <46994949+walking-octopus@users.noreply.github.com> Co-authored-by: Judicael <46365844+judicaelandria@users.noreply.github.com> Co-authored-by: gadi246 <gadi246@gmail.com> Co-authored-by: SiderealArt <nelson22768384@gmail.com> Co-authored-by: Gwenaël Gallon <ggallon@users.noreply.github.com> Co-authored-by: Henrique Doro <opensource@hdoro.dev> Co-authored-by: Gustavo Chico <josegustavochico@gmail.com> Co-authored-by: Josh Stuve <stuve.josh@gmail.com> Co-authored-by: JStuve <josh.stuve@gmail.com> Co-authored-by: with-heart <with.heart+git@pm.me> Co-authored-by: Rozstone <42225395+wststone@users.noreply.github.com> Co-authored-by: Marcus Stenbeck <marcus.stenbeck@gmail.com> Co-authored-by: Thomas Steiner <tomac@google.com> Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com> Co-authored-by: Zachary Ho <zachyho@canva.com> Co-authored-by: Amila Welihinda <amilajack@gmail.com> Co-authored-by: David Sheldrick <d.j.sheldrick@gmail.com> Co-authored-by: Hugo <mail@hugodaniel.pt> Co-authored-by: Wes Lord <weslord@gmail.com> Co-authored-by: moonrailgun <moonrailgun@gmail.com> Co-authored-by: turkerdev <48413508+turkerdev@users.noreply.github.com> Co-authored-by: Alex Kim <45559664+alex-kim-dev@users.noreply.github.com> Co-authored-by: Anders Rex <andersrex@users.noreply.github.com>
I just encountered the same issue trying to use TypeScript 4.9's |
Same as @OliverJAsh with TypeScript 4.9's and satisifies operator. |
I've just submitted a pull request to update prettier to |
I think the best way to solve this issue would be by solving #141. |
The issue should be resolved in v4.1.0. |
Your Environment
Describe the bug
Parser error when using TypeScript 4.7 Instantiation Expressions (supported in Prettier 2.7.0).
To Reproduce
Using the latest version of
prettier
and@trivago/prettier-plugin-sort-imports
at the time of writing:package.json
:file.ts
:Expected behavior
No error
The error only occurs when
@trivago/prettier-plugin-sort-imports
is installed—if remove uninstall it, the parser issue disappears. To make issues like this easier to debug in the future, I would suggest improving the error output so to make it clearer that this error originates from the parser inside of@trivago/prettier-plugin-sort-imports
and not the parser inside ofprettier
.The text was updated successfully, but these errors were encountered: