Decentralized Forum #698
Replies: 7 comments 9 replies
-
I would prefer to have a user flow as follow:
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Nice rundown of options! Let me preface this by saying that ALL of the solutions we have right now are reliant on some sort of a relay service. (I might be couple of years outdated on this topic, but don't think much has changed so far.) This all boils down to browsers having limited capabilities when it comes to P2P communications.
Also chiming in with a couple more options I've seen in the wild:
Thoughts
|
Beta Was this translation helpful? Give feedback.
-
I think since IPFS is something we already require for dxvote that its the most obvious solution for the storage of off chain social data also. We also have the potential solution to some of our qualms by running our own ipfs nodes, the issue is how scalable this is when we offer governance to others. Do we create a paid for service to use the dxvote ipfs nodes? We looked at Lens also but the UX issue of transactions for everything is pretty awful and I think something we should avoid. However the cool part of what lens is trying to do is make personal data more standardised and interoperable which I feel is something similar to what ceramic is aiming to do. So I guess the two main options I have been considering most seriously is orbit vs ceramic. |
Beta Was this translation helpful? Give feedback.
-
Thx for putting all this together @carlbarrdahl The main goal, the genesis goal, the main thing we need in order to make this to happen is to emit message and listen to them in a public network pretty much like a emit/subscribe, but we need it free, public and to be as distributed as possible. The technology that we have been using all this time and never disappointed us is IPFS, and we can continue using it for our forum, what we need is the use of pubsub, more here: https://blog.ipfs.io/25-pubsub/ (it was added in 2017!) PubSub is not hard to use, it is very simple, in fact I think we have the enough resources to integrate pubsub directly into our applications, there are libraries like https://www.npmjs.com/package/ipfs-pubsub-room that we can use or fork. We can also use OrbitDB, the development is currently active and I think we can count on it for the long term. My next choice would be https://docs.ethswarm.org/docs/ (previously swarm), this also has the messaging protocol that would satisfy our needs. OrbitDB and Convo.space have already been added into dxvote and they prove that can be used. I would leave Ceramic off for now since the adding that indexing step adds a central point of control into the process and is something we want to avoid, maybe in a future they add a feature in their protocol that we can use. The main problem here is the distribution and persistence of the messages shared in the networks used, we have dxdao users that have local IPFS nodes, they have a node address, IPFS has the option to add bootnodes or nodes that you want to connect directly and they would be the first ones to receive your messages. My suggestion would be:
How to emit and listen messages shared using pubsub or something alike? Share all data related to dxvote with the dxvote-topic or guild-topic. The message will contain a formatted json with two three fields:
If the signer is a REP or DXD holder then we know the data is valid and can be displayed in dxvote or guilds. Also we cant share unsigned information, so this solves that requirement too. With all this I think the BEST way to start experimenting and testing this is having comments in the proposal. If we have that feature using an agnostic way of sharing signed comments in proposals then we can use it quite easily in the rest of the dapp, so I would recommend you to focus only on comments at first, we make sure that it works good and then we can use it for forum topics, drafts, vote signatures, etc. |
Beta Was this translation helpful? Give feedback.
-
It seems Ceramic doesn't support Webpack 4 anymore. I've been trying to get Ceramic to work in DXvote but haven't gotten it to work. I tried upgrading Error logERROR in ./src/components/DiscourseImporter/index.tsx 60:10-17
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/pages/Metadata.tsx 15:0-64 148:42-59
@ ./src/index.tsx 30:0-52 168:43-61
ERROR in ./src/components/Guilds/ErrorBoundary/GlobalErrorBoundary.tsx 24:4-11
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/GuildsApp.tsx 17:0-88 42:37-56
@ ./src/index.tsx 31:0-36 282:36-45
ERROR in ./src/components/Guilds/Web3Manager/WalletWeb3Manager.tsx 59:8-15
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/GuildsApp.tsx 16:0-82 43:39-56
@ ./src/index.tsx 31:0-36 282:36-45
ERROR in ./src/components/Guilds/Web3Modals/WalletModal.tsx 134:6-13
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/components/Guilds/Header/WalletButton.tsx 11:0-52 101:55-66
@ ./src/components/Guilds/Header/index.tsx 11:0-42 87:39-51
@ ./src/GuildsApp.tsx 9:0-48 50:45-51
@ ./src/index.tsx 31:0-36 282:36-45
ERROR in ./src/components/Proposal/Votes/index.tsx 58:4-11
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/components/Proposal/index.ts 5:0-43 5:0-43
@ ./src/pages/Proposal.tsx 15:0-85 140:39-44 149:37-44 161:38-44 169:37-44 177:37-42 185:37-43
@ ./src/index.tsx 24:0-44 204:43-55
ERROR in ./src/components/UserVestingInfoModal/UserVestingInfoModal.tsx 93:6-13
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/components/UserVestingInfoModal/index.ts 3:0-49 3:0-49
@ ./src/components/UserPage/VestingContractsSection/VestingContractsSection.tsx 8:0-62 103:35-55
@ ./src/components/UserPage/VestingContractsSection/index.ts 3:0-79 3:0-79
@ ./src/components/UserPage/index.ts 4:0-42 4:0-42
@ ./src/pages/User.tsx 14:0-81 149:29-37 169:34-41 192:29-52
@ ./src/index.tsx 23:0-36 192:43-51
ERROR in ./src/components/WalletModal/index.tsx 187:6-13
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/components/Web3ConnectStatus/index.tsx 9:0-49 200:75-86
@ ./src/components/Header/index.tsx 9:0-53 152:38-55 202:45-62 280:38-55
@ ./src/index.tsx 16:0-41 255:42-48
ERROR in ./src/components/Web3ReactManager/index.tsx 54:2-9
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/index.tsx 10:0-59 249:37-53
ERROR in ./src/contexts/Guilds/transactions.tsx 165:6-13
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/contexts/Guilds/index.ts 4:0-31 4:0-31
@ ./src/GuildsApp.tsx 15:0-78 44:41-61 45:43-64
@ ./src/index.tsx 31:0-36 282:36-45
ERROR in ./src/hooks/ContributorProposal/useSubmitProposal.ts 57:6-13
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/pages/ProposalSubmission/ContributorProposal.tsx 23:0-80 175:6-23 469:69-86 471:69-86
@ ./src/pages/SubmitProposal.tsx 10:0-83 30:38-61
@ ./src/index.tsx 21:0-60 157:43-61
ERROR in ./src/hooks/Guilds/contracts/useContract.ts 30:6-13
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/pages/Guilds/CreateProposal.tsx 20:0-67 125:24-37 353:117-130
@ ./src/GuildsApp.tsx 12:0-61 103:53-71
@ ./src/index.tsx 31:0-36 282:36-45
ERROR in ./src/hooks/Guilds/ether-swr/guild/useProposalMetadata.ts 28:6-13
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/components/Guilds/ProposalPage/ProposalDescription/index.tsx 7:0-83 36:6-25 74:21-40
@ ./src/pages/Guilds/Proposal.tsx 19:0-91 226:37-56
@ ./src/GuildsApp.tsx 11:0-51 92:53-65
@ ./src/index.tsx 31:0-36 282:36-45
ERROR in ./src/hooks/Guilds/ether-swr/middleware/logger.ts 10:6-13
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/components/Guilds/EtherSWRManager/index.tsx 8:0-72 22:12-28
@ ./src/index.tsx 39:0-64 247:30-45
ERROR in ./src/hooks/Guilds/ipfs/useIPFSNode.ts 20:8-15
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/pages/Guilds/CreateProposal.tsx 21:0-56 107:15-26 353:76-87
@ ./src/GuildsApp.tsx 12:0-61 103:53-71
@ ./src/index.tsx 31:0-36 282:36-45
ERROR in ./src/hooks/useABIService.ts 42:6-13
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/components/Proposal/Calls/index.tsx 7:0-52 37:6-19 149:23-36 151:23-36
@ ./src/components/Proposal/index.ts 4:0-43 4:0-43
@ ./src/pages/Proposal.tsx 15:0-85 140:39-44 149:37-44 161:38-44 169:37-44 177:37-42 185:37-43
@ ./src/index.tsx 24:0-44 204:43-55
ERROR in ./src/hooks/useEtherscanService.ts 49:6-13
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/components/Proposal/Calls/index.tsx 9:0-64 41:6-25 149:38-57 151:38-57
@ ./src/components/Proposal/index.ts 4:0-43 4:0-43
@ ./src/pages/Proposal.tsx 15:0-85 140:39-44 149:37-44 161:38-44 169:37-44 177:37-42 185:37-43
@ ./src/index.tsx 24:0-44 204:43-55
ERROR in ./src/hooks/useMainnetRep.ts 38:6-13
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/pages/ProposalSubmission/ContributorProposal.tsx 13:0-54 159:6-19 469:22-35 471:22-35
@ ./src/pages/SubmitProposal.tsx 10:0-83 30:38-61
@ ./src/index.tsx 21:0-60 157:43-61
ERROR in ./src/index.tsx 43:0-7
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
ERROR in ./src/pages/Cache.tsx 177:4-11
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/index.tsx 29:0-36 122:43-52
ERROR in ./src/pages/Forum.tsx 51:6-13
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/index.tsx 28:0-38 98:43-52
ERROR in ./src/pages/Proposal.tsx 88:4-11
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/index.tsx 24:0-44 204:43-55
ERROR in ./src/pages/ProposalSubmission/Custom.tsx 155:2-9
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/pages/SubmitProposal.tsx 9:0-58 19:38-53
@ ./src/index.tsx 21:0-60 157:43-61
ERROR in ./src/provider/providerHooks.ts 37:4-11
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/contexts/MultichainProvider/index.tsx 8:0-58 18:18-28 41:10-20
@ ./src/index.tsx 34:0-63 305:39-57
ERROR in ./src/serviceWorker.ts 61:12-19
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/index.tsx 14:0-49 354:0-24
ERROR in ./src/services/CacheService.ts 80:8-15
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/contexts/index.ts 29:0-49 92:28-40
@ ./src/index.tsx 37:0-40 242:6-16
ERROR in ./src/services/DaoService.ts 168:4-11
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/contexts/index.ts 7:0-48 78:26-36
@ ./src/index.tsx 37:0-40 242:6-16
ERROR in ./src/services/ENSService.ts 17:4-11
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/contexts/index.ts 17:0-48 87:26-36
@ ./src/index.tsx 37:0-40 242:6-16
ERROR in ./src/services/IPFSService.ts 17:6-13
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/contexts/index.ts 9:0-50 79:27-38
@ ./src/index.tsx 37:0-40 242:6-16
ERROR in ./src/services/MessageLoggerService.ts 42:4-11
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/contexts/index.ts 20:0-68 90:36-56
@ ./src/index.tsx 37:0-40 242:6-16
ERROR in ./src/services/OrbitDBService.ts 15:6-13
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/contexts/index.ts 21:0-56 91:30-44
@ ./src/index.tsx 37:0-40 242:6-16
ERROR in ./src/stores/BlockchainStore.ts 60:10-17
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/contexts/index.ts 27:0-56 75:31-46
@ ./src/index.tsx 37:0-40 242:6-16
ERROR in ./src/stores/ConfigStore.ts 68:25-32
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/contexts/index.ts 25:0-48 72:27-38
@ ./src/index.tsx 37:0-40 242:6-16
ERROR in ./src/stores/DaoStore.ts 85:4-11
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/contexts/index.ts 26:0-42 73:24-32
@ ./src/index.tsx 37:0-40 242:6-16
ERROR in ./src/stores/Provider.ts 91:19-26
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/contexts/index.ts 22:0-47 69:29-42
@ ./src/index.tsx 37:0-40 242:6-16
ERROR in ./src/stores/actions/actions.ts 8:2-9
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/stores/Provider.ts 5:0-47 59:23-33
@ ./src/contexts/index.ts 22:0-47 69:29-42
@ ./src/index.tsx 37:0-40 242:6-16
ERROR in ./src/utils/cache.ts 17:4-11
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/utils/index.ts 5:0-24 5:0-24
@ ./src/pages/User.tsx 11:0-41 70:19-32
@ ./src/index.tsx 23:0-36 192:43-51
ERROR in ./src/utils/ipfs.ts 31:4-11
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/utils/index.ts 20:0-23 20:0-23
@ ./src/pages/User.tsx 11:0-41 70:19-32
@ ./src/index.tsx 23:0-36 192:43-51
ERROR in ./src/utils/votes.ts 29:4-11
Module not found: Error: You attempted to import /<redacted>/dxvote/node_modules/console-browserify/index.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
@ ./src/utils/index.ts 19:0-24 19:0-24
@ ./src/pages/User.tsx 11:0-41 70:19-32
@ ./src/index.tsx 23:0-36 192:43-51
ERROR in ./node_modules/@uiw/react-markdown-preview/lib/esm/styles/markdown.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./node_modules/@uiw/react-markdown-preview/lib/esm/styles/markdown.css)
Module Error (from ./node_modules/postcss-loader/dist/cjs.js):
Loading PostCSS "postcss-normalize" plugin failed: Cannot find module 'postcss-normalize'
Require stack:
- /<redacted>/dxvote/node_modules/postcss-loader/dist/utils.js
- /<redacted>/dxvote/node_modules/postcss-loader/dist/index.js
- /<redacted>/dxvote/node_modules/postcss-loader/dist/cjs.js
- /<redacted>/dxvote/node_modules/loader-runner/lib/loadLoader.js
- /<redacted>/dxvote/node_modules/loader-runner/lib/LoaderRunner.js
- /<redacted>/dxvote/node_modules/webpack/lib/NormalModule.js
- /<redacted>/dxvote/node_modules/react-scripts/node_modules/webpack-manifest-plugin/dist/index.js
- /<redacted>/dxvote/node_modules/react-scripts/config/webpack.config.js
- /<redacted>/dxvote/node_modules/react-app-rewired/scripts/start.js
(@/<redacted>/dxvote/node_modules/@uiw/react-markdown-preview/lib/esm/styles/markdown.css)
@ ./node_modules/@uiw/react-markdown-preview/lib/esm/styles/markdown.css 8:6-262 22:17-24 26:7-21 58:25-39 59:36-47 59:50-64 63:6-73:7 64:54-65 64:68-82 70:42-53 70:56-70 72:21-28 83:0-232 83:0-232 84:22-29 84:33-47 84:50-64 61:4-74:5
@ ./node_modules/@uiw/react-markdown-preview/lib/esm/index.js 16:0-31
@ ./node_modules/@uiw/react-md-editor/lib/esm/index.js 1:0-51 5:20-28
@ ./src/pages/Proposal.tsx 11:0-44 103:39-56
@ ./src/index.tsx 24:0-44 204:43-55
ERROR in ./node_modules/@uiw/react-markdown-preview/lib/esm/styles/markdowncolor.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./node_modules/@uiw/react-markdown-preview/lib/esm/styles/markdowncolor.css)
Module Error (from ./node_modules/postcss-loader/dist/cjs.js):
Loading PostCSS "postcss-normalize" plugin failed: Cannot find module 'postcss-normalize'
Require stack:
- /<redacted>/dxvote/node_modules/postcss-loader/dist/utils.js
- /<redacted>/dxvote/node_modules/postcss-loader/dist/index.js
- /<redacted>/dxvote/node_modules/postcss-loader/dist/cjs.js
- /<redacted>/dxvote/node_modules/loader-runner/lib/loadLoader.js
- /<redacted>/dxvote/node_modules/loader-runner/lib/LoaderRunner.js
- /<redacted>/dxvote/node_modules/webpack/lib/NormalModule.js
- /<redacted>/dxvote/node_modules/react-scripts/node_modules/webpack-manifest-plugin/dist/index.js
- /<redacted>/dxvote/node_modules/react-scripts/config/webpack.config.js
- /<redacted>/dxvote/node_modules/react-app-rewired/scripts/start.js
(@/<redacted>/dxvote/node_modules/@uiw/react-markdown-preview/lib/esm/styles/markdowncolor.css)
@ ./node_modules/@uiw/react-markdown-preview/lib/esm/styles/markdowncolor.css 8:6-267 22:17-24 26:7-21 58:25-39 59:36-47 59:50-64 63:6-73:7 64:54-65 64:68-82 70:42-53 70:56-70 72:21-28 83:0-237 83:0-237 84:22-29 84:33-47 84:50-64 61:4-74:5
@ ./node_modules/@uiw/react-markdown-preview/lib/esm/index.js 17:0-36
@ ./node_modules/@uiw/react-md-editor/lib/esm/index.js 1:0-51 5:20-28
@ ./src/pages/Proposal.tsx 11:0-44 103:39-56
@ ./src/index.tsx 24:0-44 204:43-55
ERROR in ./node_modules/@uiw/react-md-editor/lib/esm/components/DragBar/index.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./node_modules/@uiw/react-md-editor/lib/esm/components/DragBar/index.css)
Module Error (from ./node_modules/postcss-loader/dist/cjs.js):
Loading PostCSS "postcss-normalize" plugin failed: Cannot find module 'postcss-normalize'
Require stack:
- /<redacted>/dxvote/node_modules/postcss-loader/dist/utils.js
- /<redacted>/dxvote/node_modules/postcss-loader/dist/index.js
- /<redacted>/dxvote/node_modules/postcss-loader/dist/cjs.js
- /<redacted>/dxvote/node_modules/loader-runner/lib/loadLoader.js
- /<redacted>/dxvote/node_modules/loader-runner/lib/LoaderRunner.js
- /<redacted>/dxvote/node_modules/webpack/lib/NormalModule.js
- /<redacted>/dxvote/node_modules/react-scripts/node_modules/webpack-manifest-plugin/dist/index.js
- /<redacted>/dxvote/node_modules/react-scripts/config/webpack.config.js
- /<redacted>/dxvote/node_modules/react-app-rewired/scripts/start.js
(@/<redacted>/dxvote/node_modules/@uiw/react-md-editor/lib/esm/components/DragBar/index.css)
@ ./node_modules/@uiw/react-md-editor/lib/esm/components/DragBar/index.css 8:6-268 22:17-24 26:7-21 58:25-39 59:36-47 59:50-64 63:6-73:7 64:54-65 64:68-82 70:42-53 70:56-70 72:21-28 83:0-238 83:0-238 84:22-29 84:33-47 84:50-64 61:4-74:5
@ ./node_modules/@uiw/react-md-editor/lib/esm/components/DragBar/index.js 38:0-21
@ ./node_modules/@uiw/react-md-editor/lib/esm/MDEditor.js 45:0-43 209:125-132
@ ./node_modules/@uiw/react-md-editor/lib/esm/index.js 2:0-38 5:0-17 7:15-23
@ ./src/pages/Proposal.tsx 11:0-44 103:39-56
@ ./src/index.tsx 24:0-44 204:43-55
ERROR in ./node_modules/@uiw/react-md-editor/lib/esm/components/TextArea/index.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./node_modules/@uiw/react-md-editor/lib/esm/components/TextArea/index.css)
Module Error (from ./node_modules/postcss-loader/dist/cjs.js):
Loading PostCSS "postcss-normalize" plugin failed: Cannot find module 'postcss-normalize'
Require stack:
- /<redacted>/dxvote/node_modules/postcss-loader/dist/utils.js
- /<redacted>/dxvote/node_modules/postcss-loader/dist/index.js
- /<redacted>/dxvote/node_modules/postcss-loader/dist/cjs.js
- /<redacted>/dxvote/node_modules/loader-runner/lib/loadLoader.js
- /<redacted>/dxvote/node_modules/loader-runner/lib/LoaderRunner.js
- /<redacted>/dxvote/node_modules/webpack/lib/NormalModule.js
- /<redacted>/dxvote/node_modules/react-scripts/node_modules/webpack-manifest-plugin/dist/index.js
- /<redacted>/dxvote/node_modules/react-scripts/config/webpack.config.js
- /<redacted>/dxvote/node_modules/react-app-rewired/scripts/start.js
(@/<redacted>/dxvote/node_modules/@uiw/react-md-editor/lib/esm/components/TextArea/index.css)
@ ./node_modules/@uiw/react-md-editor/lib/esm/components/TextArea/index.css 8:6-268 22:17-24 26:7-21 58:25-39 59:36-47 59:50-64 63:6-73:7 64:54-65 64:68-82 70:42-53 70:56-70 72:21-28 83:0-238 83:0-238 84:22-29 84:33-47 84:50-64 61:4-74:5
@ ./node_modules/@uiw/react-md-editor/lib/esm/components/TextArea/index.js 46:0-21
@ ./node_modules/@uiw/react-md-editor/lib/esm/MDEditor.js 43:0-45 189:84-92
@ ./node_modules/@uiw/react-md-editor/lib/esm/index.js 2:0-38 5:0-17 7:15-23
@ ./src/pages/Proposal.tsx 11:0-44 103:39-56
@ ./src/index.tsx 24:0-44 204:43-55
ERROR in ./node_modules/@uiw/react-md-editor/lib/esm/components/Toolbar/index.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./node_modules/@uiw/react-md-editor/lib/esm/components/Toolbar/index.css)
Module Error (from ./node_modules/postcss-loader/dist/cjs.js):
Loading PostCSS "postcss-normalize" plugin failed: Cannot find module 'postcss-normalize'
Require stack:
- /<redacted>/dxvote/node_modules/postcss-loader/dist/utils.js
- /<redacted>/dxvote/node_modules/postcss-loader/dist/index.js
- /<redacted>/dxvote/node_modules/postcss-loader/dist/cjs.js
- /<redacted>/dxvote/node_modules/loader-runner/lib/loadLoader.js
- /<redacted>/dxvote/node_modules/loader-runner/lib/LoaderRunner.js
- /<redacted>/dxvote/node_modules/webpack/lib/NormalModule.js
- /<redacted>/dxvote/node_modules/react-scripts/node_modules/webpack-manifest-plugin/dist/index.js
- /<redacted>/dxvote/node_modules/react-scripts/config/webpack.config.js
- /<redacted>/dxvote/node_modules/react-app-rewired/scripts/start.js
(@/<redacted>/dxvote/node_modules/@uiw/react-md-editor/lib/esm/components/Toolbar/index.css)
@ ./node_modules/@uiw/react-md-editor/lib/esm/components/Toolbar/index.css 8:6-268 22:17-24 26:7-21 58:25-39 59:36-47 59:50-64 63:6-73:7 64:54-65 64:68-82 70:42-53 70:56-70 72:21-28 83:0-238 83:0-238 84:22-29 84:33-47 84:50-64 61:4-74:5
@ ./node_modules/@uiw/react-md-editor/lib/esm/components/Toolbar/index.js 75:0-21
@ ./node_modules/@uiw/react-md-editor/lib/esm/MDEditor.js 44:0-43 176:50-57
@ ./node_modules/@uiw/react-md-editor/lib/esm/index.js 2:0-38 5:0-17 7:15-23
@ ./src/pages/Proposal.tsx 11:0-44 103:39-56
@ ./src/index.tsx 24:0-44 204:43-55
ERROR in ./node_modules/@uiw/react-md-editor/lib/esm/index.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./node_modules/@uiw/react-md-editor/lib/esm/index.css)
Module Error (from ./node_modules/postcss-loader/dist/cjs.js):
Loading PostCSS "postcss-normalize" plugin failed: Cannot find module 'postcss-normalize'
Require stack:
- /<redacted>/dxvote/node_modules/postcss-loader/dist/utils.js
- /<redacted>/dxvote/node_modules/postcss-loader/dist/index.js
- /<redacted>/dxvote/node_modules/postcss-loader/dist/cjs.js
- /<redacted>/dxvote/node_modules/loader-runner/lib/loadLoader.js
- /<redacted>/dxvote/node_modules/loader-runner/lib/LoaderRunner.js
- /<redacted>/dxvote/node_modules/webpack/lib/NormalModule.js
- /<redacted>/dxvote/node_modules/react-scripts/node_modules/webpack-manifest-plugin/dist/index.js
- /<redacted>/dxvote/node_modules/react-scripts/config/webpack.config.js
- /<redacted>/dxvote/node_modules/react-app-rewired/scripts/start.js
(@/<redacted>/dxvote/node_modules/@uiw/react-md-editor/lib/esm/index.css)
@ ./node_modules/@uiw/react-md-editor/lib/esm/index.css 8:6-250 22:17-24 26:7-21 58:25-39 59:36-47 59:50-64 63:6-73:7 64:54-65 64:68-82 70:42-53 70:56-70 72:21-28 83:0-220 83:0-220 84:22-29 84:33-47 84:50-64 61:4-74:5
@ ./node_modules/@uiw/react-md-editor/lib/esm/MDEditor.js 47:0-21
@ ./node_modules/@uiw/react-md-editor/lib/esm/index.js 2:0-38 5:0-17 7:15-23
@ ./src/pages/Proposal.tsx 11:0-44 103:39-56
@ ./src/index.tsx 24:0-44 204:43-55
ERROR in ./node_modules/react-datetime/css/react-datetime.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./node_modules/react-datetime/css/react-datetime.css)
Module Error (from ./node_modules/postcss-loader/dist/cjs.js):
Loading PostCSS "postcss-normalize" plugin failed: Cannot find module 'postcss-normalize'
Require stack:
- /<redacted>/dxvote/node_modules/postcss-loader/dist/utils.js
- /<redacted>/dxvote/node_modules/postcss-loader/dist/index.js
- /<redacted>/dxvote/node_modules/postcss-loader/dist/cjs.js
- /<redacted>/dxvote/node_modules/loader-runner/lib/loadLoader.js
- /<redacted>/dxvote/node_modules/loader-runner/lib/LoaderRunner.js
- /<redacted>/dxvote/node_modules/webpack/lib/NormalModule.js
- /<redacted>/dxvote/node_modules/react-scripts/node_modules/webpack-manifest-plugin/dist/index.js
- /<redacted>/dxvote/node_modules/react-scripts/config/webpack.config.js
- /<redacted>/dxvote/node_modules/react-app-rewired/scripts/start.js
(@/<redacted>/dxvote/node_modules/react-datetime/css/react-datetime.css)
@ ./node_modules/react-datetime/css/react-datetime.css 8:6-241 22:17-24 26:7-21 58:25-39 59:36-47 59:50-64 63:6-73:7 64:54-65 64:68-82 70:42-53 70:56-70 72:21-28 83:0-211 83:0-211 84:22-29 84:33-47 84:50-64 61:4-74:5
@ ./src/components/common/Forms/InputDate.tsx 6:0-47
@ ./src/components/common/Forms/index.ts 3:0-40 3:0-40
@ ./src/components/common/index.ts 13:0-36 13:0-36
@ ./src/pages/NewProposalType.tsx 12:0-43 54:28-31
@ ./src/index.tsx 22:0-62 146:43-62
ERROR in ./node_modules/react-loading-skeleton/dist/skeleton.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./node_modules/react-loading-skeleton/dist/skeleton.css)
Module Error (from ./node_modules/postcss-loader/dist/cjs.js):
Loading PostCSS "postcss-normalize" plugin failed: Cannot find module 'postcss-normalize'
Require stack:
- /<redacted>/dxvote/node_modules/postcss-loader/dist/utils.js
- /<redacted>/dxvote/node_modules/postcss-loader/dist/index.js
- /<redacted>/dxvote/node_modules/postcss-loader/dist/cjs.js
- /<redacted>/dxvote/node_modules/loader-runner/lib/loadLoader.js
- /<redacted>/dxvote/node_modules/loader-runner/lib/LoaderRunner.js
- /<redacted>/dxvote/node_modules/webpack/lib/NormalModule.js
- /<redacted>/dxvote/node_modules/react-scripts/node_modules/webpack-manifest-plugin/dist/index.js
- /<redacted>/dxvote/node_modules/react-scripts/config/webpack.config.js
- /<redacted>/dxvote/node_modules/react-app-rewired/scripts/start.js
(@/<redacted>/dxvote/node_modules/react-loading-skeleton/dist/skeleton.css)
@ ./node_modules/react-loading-skeleton/dist/skeleton.css 8:6-235 22:17-24 26:7-21 58:25-39 59:36-47 59:50-64 63:6-73:7 64:54-65 64:68-82 70:42-53 70:56-70 72:21-28 83:0-205 83:0-205 84:22-29 84:33-47 84:50-64 61:4-74:5
@ ./src/components/Guilds/ProposalCard/index.tsx 13:0-50
@ ./src/pages/Guilds/Guilds.tsx 12:0-64 107:45-57 126:42-54 130:41-53 134:41-53 138:41-53 142:41-53
@ ./src/GuildsApp.tsx 10:0-47 68:53-63
@ ./src/index.tsx 31:0-36 282:36-45
ERROR in ./node_modules/react-toastify/dist/ReactToastify.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./node_modules/react-toastify/dist/ReactToastify.css)
Module Error (from ./node_modules/postcss-loader/dist/cjs.js):
Loading PostCSS "postcss-normalize" plugin failed: Cannot find module 'postcss-normalize'
Require stack:
- /<redacted>/dxvote/node_modules/postcss-loader/dist/utils.js
- /<redacted>/dxvote/node_modules/postcss-loader/dist/index.js
- /<redacted>/dxvote/node_modules/postcss-loader/dist/cjs.js
- /<redacted>/dxvote/node_modules/loader-runner/lib/loadLoader.js
- /<redacted>/dxvote/node_modules/loader-runner/lib/LoaderRunner.js
- /<redacted>/dxvote/node_modules/webpack/lib/NormalModule.js
- /<redacted>/dxvote/node_modules/react-scripts/node_modules/webpack-manifest-plugin/dist/index.js
- /<redacted>/dxvote/node_modules/react-scripts/config/webpack.config.js
- /<redacted>/dxvote/node_modules/react-app-rewired/scripts/start.js
(@/<redacted>/dxvote/node_modules/react-toastify/dist/ReactToastify.css)
@ ./node_modules/react-toastify/dist/ReactToastify.css 8:6-240 22:17-24 26:7-21 58:25-39 59:36-47 59:50-64 63:6-73:7 64:54-65 64:68-82 70:42-53 70:56-70 72:21-28 83:0-210 83:0-210 84:22-29 84:33-47 84:50-64 61:4-74:5
@ ./src/index.tsx 33:0-47
ERROR in ./node_modules/@uiw/react-markdown-preview/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js 1:0-70
Module not found: Error: Can't resolve './unsupportedIterableToArray' in '/<redacted>/dxvote/node_modules/@uiw/react-markdown-preview/node_modules/@babel/runtime/helpers/esm'
Did you mean 'unsupportedIterableToArray.js'?
BREAKING CHANGE: The request './unsupportedIterableToArray' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
@ ./node_modules/@uiw/react-markdown-preview/lib/esm/index.js 4:0-94 86:28-54
@ ./node_modules/@uiw/react-md-editor/lib/esm/index.js 1:0-51 5:20-28
@ ./src/pages/Proposal.tsx 11:0-44 103:39-56
@ ./src/index.tsx 24:0-44 204:43-55
ERROR in ./node_modules/@uiw/react-markdown-preview/node_modules/@babel/runtime/helpers/esm/createSuper.js 1:0-46
Module not found: Error: Can't resolve './getPrototypeOf' in '/<redacted>/dxvote/node_modules/@uiw/react-markdown-preview/node_modules/@babel/runtime/helpers/esm'
Did you mean 'getPrototypeOf.js'?
BREAKING CHANGE: The request './getPrototypeOf' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
@ ./node_modules/@uiw/react-markdown-preview/lib/esm/index.js 9:0-66 22:15-27
@ ./node_modules/@uiw/react-md-editor/lib/esm/index.js 1:0-51 5:20-28
@ ./src/pages/Proposal.tsx 11:0-44 103:39-56
@ ./src/index.tsx 24:0-44 204:43-55
ERROR in ./node_modules/@uiw/react-markdown-preview/node_modules/@babel/runtime/helpers/esm/createSuper.js 2:0-66
Module not found: Error: Can't resolve './isNativeReflectConstruct' in '/<redacted>/dxvote/node_modules/@uiw/react-markdown-preview/node_modules/@babel/runtime/helpers/esm'
Did you mean 'isNativeReflectConstruct.js'?
BREAKING CHANGE: The request './isNativeReflectConstruct' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
@ ./node_modules/@uiw/react-markdown-preview/lib/esm/index.js 9:0-66 22:15-27
@ ./node_modules/@uiw/react-md-editor/lib/esm/index.js 1:0-51 5:20-28
@ ./src/pages/Proposal.tsx 11:0-44 103:39-56
@ ./src/index.tsx 24:0-44 204:43-55
ERROR in ./node_modules/@uiw/react-markdown-preview/node_modules/@babel/runtime/helpers/esm/createSuper.js 3:0-68
Module not found: Error: Can't resolve './possibleConstructorReturn' in '/<redacted>/dxvote/node_modules/@uiw/react-markdown-preview/node_modules/@babel/runtime/helpers/esm'
Did you mean 'possibleConstructorReturn.js'?
BREAKING CHANGE: The request './possibleConstructorReturn' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
@ ./node_modules/@uiw/react-markdown-preview/lib/esm/index.js 9:0-66 22:15-27
@ ./node_modules/@uiw/react-md-editor/lib/esm/index.js 1:0-51 5:20-28
@ ./src/pages/Proposal.tsx 11:0-44 103:39-56
@ ./src/index.tsx 24:0-44 204:43-55
ERROR in ./node_modules/@uiw/react-markdown-preview/node_modules/@babel/runtime/helpers/esm/inherits.js 1:0-46
Module not found: Error: Can't resolve './setPrototypeOf' in '/<redacted>/dxvote/node_modules/@uiw/react-markdown-preview/node_modules/@babel/runtime/helpers/esm'
Did you mean 'setPrototypeOf.js'?
BREAKING CHANGE: The request './setPrototypeOf' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
@ ./node_modules/@uiw/react-markdown-preview/lib/esm/index.js 8:0-60 20:2-11
@ ./node_modules/@uiw/react-md-editor/lib/esm/index.js 1:0-51 5:20-28
@ ./src/pages/Proposal.tsx 11:0-44 103:39-56
@ ./src/index.tsx 24:0-44 204:43-55
ERROR in ./node_modules/@uiw/react-markdown-preview/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js 1:0-74
Module not found: Error: Can't resolve './objectWithoutPropertiesLoose' in '/<redacted>/dxvote/node_modules/@uiw/react-markdown-preview/node_modules/@babel/runtime/helpers/esm'
Did you mean 'objectWithoutPropertiesLoose.js'?
BREAKING CHANGE: The request './objectWithoutPropertiesLoose' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
@ ./node_modules/@uiw/react-markdown-preview/lib/esm/index.js 2:0-90 172:18-42
@ ./node_modules/@uiw/react-md-editor/lib/esm/index.js 1:0-51 5:20-28
@ ./src/pages/Proposal.tsx 11:0-44 103:39-56
@ ./src/index.tsx 24:0-44 204:43-55
ERROR in ./node_modules/@uiw/react-markdown-preview/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js 1:0-52
Module not found: Error: Can't resolve './arrayWithoutHoles' in '/<redacted>/dxvote/node_modules/@uiw/react-markdown-preview/node_modules/@babel/runtime/helpers/esm'
Did you mean 'arrayWithoutHoles.js'?
BREAKING CHANGE: The request './arrayWithoutHoles' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
@ ./node_modules/@uiw/react-markdown-preview/lib/esm/langs.js 2:0-78 423:55-73 423:82-100 429:55-73 429:82-100
@ ./node_modules/@uiw/react-markdown-preview/lib/esm/index.js 15:0-35 115:23-31
@ ./node_modules/@uiw/react-md-editor/lib/esm/index.js 1:0-51 5:20-28
@ ./src/pages/Proposal.tsx 11:0-44 103:39-56
@ ./src/index.tsx 24:0-44 204:43-55
ERROR in ./node_modules/@uiw/react-markdown-preview/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js 2:0-48
Module not found: Error: Can't resolve './iterableToArray' in '/<redacted>/dxvote/node_modules/@uiw/react-markdown-preview/node_modules/@babel/runtime/helpers/esm'
Did you mean 'iterableToArray.js'?
BREAKING CHANGE: The request './iterableToArray' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
@ ./node_modules/@uiw/react-markdown-preview/lib/esm/langs.js 2:0-78 423:55-73 423:82-100 429:55-73 429:82-100
@ ./node_modules/@uiw/react-markdown-preview/lib/esm/index.js 15:0-35 115:23-31
@ ./node_modules/@uiw/react-md-editor/lib/esm/index.js 1:0-51 5:20-28
@ ./src/pages/Proposal.tsx 11:0-44 103:39-56
@ ./src/index.tsx 24:0-44 204:43-55
ERROR in ./node_modules/@uiw/react-markdown-preview/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js 3:0-70
Module not found: Error: Can't resolve './unsupportedIterableToArray' in '/<redacted>/dxvote/node_modules/@uiw/react-markdown-preview/node_modules/@babel/runtime/helpers/esm'
Did you mean 'unsupportedIterableToArray.js'?
BREAKING CHANGE: The request './unsupportedIterableToArray' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
@ ./node_modules/@uiw/react-markdown-preview/lib/esm/langs.js 2:0-78 423:55-73 423:82-100 429:55-73 429:82-100
@ ./node_modules/@uiw/react-markdown-preview/lib/esm/index.js 15:0-35 115:23-31
@ ./node_modules/@uiw/react-md-editor/lib/esm/index.js 1:0-51 5:20-28
@ ./src/pages/Proposal.tsx 11:0-44 103:39-56
@ ./src/index.tsx 24:0-44 204:43-55
ERROR in ./node_modules/@uiw/react-markdown-preview/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js 4:0-52
Module not found: Error: Can't resolve './nonIterableSpread' in '/<redacted>/dxvote/node_modules/@uiw/react-markdown-preview/node_modules/@babel/runtime/helpers/esm'
Did you mean 'nonIterableSpread.js'?
BREAKING CHANGE: The request './nonIterableSpread' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
@ ./node_modules/@uiw/react-markdown-preview/lib/esm/langs.js 2:0-78 423:55-73 423:82-100 429:55-73 429:82-100
@ ./node_modules/@uiw/react-markdown-preview/lib/esm/index.js 15:0-35 115:23-31
@ ./node_modules/@uiw/react-md-editor/lib/esm/index.js 1:0-51 5:20-28
@ ./src/pages/Proposal.tsx 11:0-44 103:39-56
@ ./src/index.tsx 24:0-44 204:43-55 Any suggestions? |
Beta Was this translation helpful? Give feedback.
-
Data model: type Event = {
id: String;
author: String; // DID from Ceramic authentication
parent?: String; // Reference to Post or Comment id
title?: String; // Posts only
content?: String; // Comments and Posts only
type: "post" | "comment" | "like";
created_at: String;
updated_at: String;
}; Sequence diagram of different flows: sequenceDiagram
actor User
participant WebApp
participant Ceramic
participant OrbitDB
opt Authentication
WebApp->>+WebApp: Try auto sign in
User->>WebApp: Connect Web3
WebApp->>+Ceramic: Create DID
Ceramic-->>-WebApp: Return DID
WebApp-->>OrbitDB: Link DID Identity
WebApp-->>-User: Connected
end
opt Create Post
User->>+WebApp: New Post
WebApp->>+Ceramic: Create TileDocument
Note over WebApp,Ceramic: title, content, type: post
Ceramic-->>-WebApp: Returns Ceramic ID
WebApp->>+OrbitDB: Update Registry
Note over WebApp,OrbitDB: id, type
WebApp-->>-User: Redirect to ViewPost
end
opt Commenting
User->>+WebApp: Reply to Post
WebApp->>+Ceramic: Create TileDocument
Note over WebApp,Ceramic: parent: post.id, type: comment
Ceramic-->>-WebApp: Returns Ceramic ID
WebApp->>+OrbitDB: Update Registry
Note over WebApp,OrbitDB: id, parent, type
WebApp-->>-User: Update PostView
end
opt Querying
User->>WebApp: Recent Posts
User->>WebApp: Comments for Post
User->>+WebApp: Likes for Post
WebApp->>+OrbitDB: Query Registry
Note over WebApp,OrbitDB: id, parent, type, sortBy, sortDir
OrbitDB-->>-WebApp: Indexed items matching query
WebApp->>+Ceramic: Load TileDocument
Ceramic->>-WebApp: Document
WebApp-->>-User: Render data
end
|
Beta Was this translation helpful? Give feedback.
-
Background / Goals
Previous work
Proof of Concept with comments on Proposal page using TheConvo.space: #671
User flows
Choice of technology
I have researched a few potential technologies we could use, each with their pros and cons. It's often a balance between these dimensions:
Databases
I can go into further details regarding the indexer, p2p replication, Ceramic or anything else here if you'd like to know more in-depth.
Possible architectures
On-chain
Store Proposal drafts and comments / likes on-chain and use a decentralized (non-hosted) subgraph to index events and list topics in frontend. This would require the user to make a transaction every time they want to create, comment or edit. Probably the most secure option but high UX friction to sign a transaction for every interaction.
Instead of a subgraph we could possibly use a getter function in the smart contract and iterate. What would the performance be as the number of proposals increase?
OrbitDB
OrbitDB public database anyone can write to. Simple but not very secure against bad actors.
Another option would be for each user to have their own database only they are allowed to write to. It's possible to add write-access for other users but not to revoke these.
We would need to figure out how to replicate these databases between users via p2p. Users need to be online to replicate these databases.
Another thing to note about OrbitDB is uncertainty around support for newer ipfs versions.
Hybrid
We store proposal drafts on-chain and interactions (comments, likes, etc) in a public OrbitDB.
The proposal is created on ipfs (via Ceramic or OrbitDB for mutability to enabled editing) and the hash is sent to a smart contract. An OrbitDB is connnected to this hash to store comments and likes.
Questions and considerations
Would be great to hear your input!
Beta Was this translation helpful? Give feedback.
All reactions