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
[error] No files matching the pattern were found: "C:/Users/username/Desktop/My".
[error] No files matching the pattern were found: "Projects/project/src/app/components/example/duck/operations.generated.ts".
Description of problem
Works on all OS platfroms. Prettier doesn't work with absolute paths that have spaces without wrapped double quotes
Run the following script without the double quotes of the path and you will get an error message prettier --write <path with inner spaces>. afterAllFileWrite passes the absolute paths without double quotes.
Solution 2
Remove the gaps in the path to your project.
For example: C:/Users/username/Desktop/My Projects/project/src/app/components/example/duck/operations.generated.ts -> C:/Users/username/Desktop/my-projects/project/src/app/components/example/duck/operations.generated.ts
Expected behavior
Prettier should overwrite all generated files without errors. My solution is bad because it is not optimized and unsafe.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Command
Error Log
Description of problem
Works on all OS platfroms. Prettier doesn't work with absolute paths that have spaces without wrapped double quotes
Run the following script without the double quotes of the path and you will get an error message
prettier --write <path with inner spaces>
.afterAllFileWrite
passes the absolute paths without double quotes.My actual solutions
afterAllFileWrite
package.json
:Remove the gaps in the path to your project.
For example:
C:/Users/username/Desktop/My Projects/project/src/app/components/example/duck/operations.generated.ts ->
C:/Users/username/Desktop/my-projects/project/src/app/components/example/duck/operations.generated.ts
Expected behavior
Prettier should overwrite all generated files without errors. My solution is bad because it is not optimized and unsafe.
Environment:
package.json
codegen.yml
Beta Was this translation helpful? Give feedback.
All reactions