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
Saving this results in a crash with following log:
["ERROR" - 13:11:35] Error formatting document.
SyntaxError: This experimental syntax requires enabling one of the following parser plugin(s): "importAttributes", "importAssertions". (1:35)
...
To see the error you'll need to download the project and run it locally. All you have to do is try to save and format the lib/utils/test.ts file with prettier.
The text was updated successfully, but these errors were encountered:
Describe the bug
When I try to import a json file inside a .js/.ts file and try to save it prettier crashes.
Severity
blocking an upgrade
Steps to Reproduce the Bug
Here's a sample file:
Saving this results in a crash with following log:
Reproduction
https://stackblitz.com/edit/sveltejs-kit-template-default-6f9a3r?file=package.json,src%2Flib%2Futils%2Ftest.ts
To see the error you'll need to download the project and run it locally. All you have to do is try to save and format the
lib/utils/test.ts
file with prettier.The text was updated successfully, but these errors were encountered: