Skip to content

Commit

Permalink
Fix the prettier configuration issue
Browse files Browse the repository at this point in the history
The prettier is config in the `dapp/.prettierrc.js`  file. This configuration depends on the type value in your `package.json`. Adding "type": "module" in package.json makes all `.js` files ES modules, and then they can only be imported in other ES modules. Prettier is not able to import `.prettierrc.js` because it is now an ES module.
  • Loading branch information
kkosiorowska committed Nov 17, 2023
1 parent c36f108 commit 7e033ce
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "dapp",
"private": true,
"version": "1.0.0",
"type": "module",
"scripts": {
"start": "vite",
"build": "tsc && vite build",
Expand Down

0 comments on commit 7e033ce

Please sign in to comment.