Replies: 1 comment 2 replies
-
Alternatively you can tell Prettier to ignore certain file extensions. In your project folder make a file named
This will get Prettier to skip formatting all files with that extension (only in your project folder) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was at the point where Patrick transfers the private key from deploy.js into its own .env file.
Then upon running deploy.js I got an
invalid hexlify value
error and it tells me my private key value is:f3361523778699819320ab3b519f47a6b7b2ee324bb5c9b8e4091ca23e221cc7;
Prettier is automatically adding a semi-colon to the private key, which doesn't belong. When you remove it, Prettier adds it back upon save. Then I noticed from Patrick's screen he has Prettier disabled while editing .env
After a quick google, my .env looks something like this
After this change, deploy.js ran with no problems
Beta Was this translation helpful? Give feedback.
All reactions