After first initialization of running truffle compile then truffle unbox react getting error Unhandled Rejection (Error): This contract object doesn't have address set yet, please set an address first.
I am trying to install a react dapp so i can learn how to create dapps so i am a beginner but i dont understand why i woulg get an error after first initialization. Also when i ran truffle unbox react it didnt complete it stopped at downloading and didnt do anything after that so it did not set up the box. then i tried truffle unbox react, unhandled rejection and that didnt work so i tried https://www.youtube.com/watch?v=X3vdaNY9KYQ and that didnt work either. To explain I went to ganache and settings and changed the port number to 8545 and then connected to local host 8545 in metamask then i changed my hostname to the numbers in node for on your network because the localhost did not work either. The farthest to a difference i got was connecting to my network and now the page is stuck at loading web3,accounts, and contract and a dialog box popped up and gave me this error.
Failed to load web3, accounts, or contract. Check console for details
Related
So I've been trying to install the google app via ADB, but when i do it i get the following error:
[INSTALL_FAILED_DUPLICATE_PERMISSION: Package com.google.android.googlequicksearchbox attempting to redeclare permission com.google.android.apps.now.OPT_IN_WIZARD already owned by com.google.android.apps.assistant]
I already tried with another app and it worked, im not really sure why this error shows up. Any help?
Recently I updated react (0.62.2) and expo (37.0.12). Nearly everything works fine. Except upon every App reload and shortly after an error occured, an error screen pops up that displays
console.error: There was a problem sending log messages to your development environment TypeError:
symbolicatedStack.map is not a function. (In 'symbolicatedStack.map(removeProjectRoot)',
'symbolicatedStack.map' is undefined
covering the previously occured error.
since there is no symbolicatedStack written by myself, I suspect its an internal error, but I can't figure out what it is. Upon pressing "Dismiss" everything works fine again. (Till the next reload/error)
Expo / React version are compatible according to their offical websites.
I guess this is dues to version missmatch try running expo upgrade command. It should resolve your issue.
I keep getting this error
"Unhandled Rejection (Error): This contract object doesn't have address set yet, please set an address first.
"
when launching truffle unbox react, and also I don't have truffle.js, only have truffle-config.js
Late but hopefully this will answer the question as I have ran into the same issue.
Assuming your metamask extension is enabled, make sure to switch your network to the localhost that is running either ganache-cli or truffle.
I have been getting this error when trying to authenticate using firebase with react.
I was able to log in after i updated all the Node_modules, but when i get the logged in user data from firebase i get this error code.
O {code: "auth/argument-error", message: "toJSON failed: First argument must be a valid string."}
I have been creating a file almost identical to this repo.
https://github.com/TaylorRayHoward/ReactReduxMessageBoard/tree/Video2
Even if i run this code, I'm unable to login and i still get the same error.
I have found the solution...
When i was using the redux devtools with google chrome the error came up. Now when i have removed the code from my application, the error does not exist any more.
I created a react project using create-react-app however when ran yarn test to see if the initial tests pass I get
TypeError: Network request failed
at XMLHttpRequest.xhr.onerror (/home/ubuntu/wonderland/hackernews/node_modules/whatwg-fetch/fetch.js:436:16)
at XMLHttpRequest.callback.(anonymous function) (/home/ubuntu/wonderland/hackernews/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:289:32)
at invokeEventListeners (/home/ubuntu/wonderland/hackernews/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:219:27)
at invokeInlineListeners (/home/ubuntu/wonderland/hackernews/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:166:7)
at EventTargetImpl._dispatch (/home/ubuntu/wonderland/hackernews/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:122:7)
at EventTargetImpl.dispatchEvent (/home/ubuntu/wonderland/hackernews/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:87:17)
at XMLHttpRequest.dispatchEvent (/home/ubuntu/wonderland/hackernews/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:61:35)
at XMLHttpRequest.abort (/home/ubuntu/wonderland/hackernews/node_modules/jsdom/lib/jsdom/living/xmlhttprequest.js:405:16)
at Object.abort (/home/ubuntu/wonderland/hackernews/node_modules/jsdom/lib/jsdom/living/xhr-utils.js:315:13)
at RequestManager.close (/home/ubuntu/wonderland/hackernews/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js:146:21)
at Window.close (/home/ubuntu/wonderland/hackernews/node_modules/jsdom/lib/jsdom/browser/Window.js:362:29)
at JSDOMEnvironment.dispose (/home/ubuntu/wonderland/hackernews/node_modules/jest-environment-jsdom/build/index.js:44:19)
at Promise.resolve.then (/home/ubuntu/wonderland/hackernews/node_modules/jest-cli/build/runTest.js:102:17)
I'm working in Cloud9 editor using ssh connected to my dev server (Ubuntu) hosted in AWS. Tests are working fine in my local machine (Ubuntu).
Thanks for the help!
I already solve my problem. I'm following a book entitled "The Road to Learn React" and I think that the one causing my error is the part where I fetch data from an external API. The book forgot to include an import for fetch which is this one:
import fetch from 'isomorphic-fetch'
Then, it solves my problem like a charm.