I followed the "Build a Shopify App with Node.js and React", and I am having some errors

Excursionist
26 0 4

Error 1: When selecting the products, this error shows up.

Warning: Text content did not match. Server: "Discount your products temporarilySelect products to change their price temporarily.Select products" Client: "Loading…"
----

 

Error 2: When i click save on add discount

index.js:1 The above error occurred in the <Toast> component:
in Toast (created by Mutation)
in div (created by Layout)
in Layout (created by Mutation)
in div (created by Page)
in div (created by Page)
in Page (created by WithAppProvider(Page))
in WithAppProvider(Page) (created by Mutation)
in Mutation (created by EditProduct)
in EditProduct (created by MyApp)
in ApolloProvider (created by MyApp)
in MediaQueryProvider (created by AppProvider)
in div (created by ThemeProvider)
in ThemeProvider (created by AppProvider)
in AppProvider (created by MyApp)
in Provider (created by MyApp)
in MyApp
in Container (created by AppContainer)
in AppContainer

React will try to recreate this component tree from scratch using the error boundary you provided, MyApp.
console.<computed> @ index.js:1
logCapturedError @ react-dom.development.js:21704
logError @ react-dom.development.js:21741
callback @ react-dom.development.js:23145
callCallback @ react-dom.development.js:13862
commitUpdateEffects @ react-dom.development.js:13900
commitUpdateQueue @ react-dom.development.js:13890
commitLifeCycles @ react-dom.development.js:21998
commitLayoutEffects @ react-dom.development.js:25288
callCallback @ react-dom.development.js:362
invokeGuardedCallbackDev @ react-dom.development.js:411
invokeGuardedCallback @ react-dom.development.js:466
commitRootImpl @ react-dom.development.js:25024
unstable_runWithPriority @ scheduler.development.js:815
runWithPriority$2 @ react-dom.development.js:12188
commitRoot @ react-dom.development.js:24865
finishSyncRender @ react-dom.development.js:24251
performSyncWorkOnRoot @ react-dom.development.js:24223
(anonymous) @ react-dom.development.js:12238
unstable_runWithPriority @ scheduler.development.js:815
runWithPriority$2 @ react-dom.development.js:12188
flushSyncCallbackQueueImpl @ react-dom.development.js:12233
flushSyncCallbackQueue @ react-dom.development.js:12221
scheduleUpdateOnFiber @ react-dom.development.js:23601
dispatchAction @ react-dom.development.js:17060
push../node_modules/@apollo/react-hooks/lib/react-hooks.esm.js.MutationData.updateResult @ react-hooks.esm.js:503
push../node_modules/@apollo/react-hooks/lib/react-hooks.esm.js.MutationData.onMutationCompleted @ react-hooks.esm.js:471
(anonymous) @ react-hooks.esm.js:415
Promise.then (async)
MutationData._this.runMutation @ react-hooks.esm.js:414
onAction @ edit-products.js:104
callCallback @ react-dom.development.js:362
invokeGuardedCallbackDev @ react-dom.development.js:411
invokeGuardedCallback @ react-dom.development.js:466
invokeGuardedCallbackAndCatchFirstError @ react-dom.development.js:480
executeDispatch @ react-dom.development.js:612
executeDispatchesInOrder @ react-dom.development.js:637
executeDispatchesAndRelease @ react-dom.development.js:743
executeDispatchesAndReleaseTopLevel @ react-dom.development.js:752
forEachAccumulated @ react-dom.development.js:724
runEventsInBatch @ react-dom.development.js:769
runExtractedPluginEventsInBatch @ react-dom.development.js:914
handleTopLevel @ react-dom.development.js:5848
batchedEventUpdates$1 @ react-dom.development.js:24343
batchedEventUpdates @ react-dom.development.js:1463
dispatchEventForPluginEventSystem @ react-dom.development.js:5943
attemptToDispatchEvent @ react-dom.development.js:6059
dispatchEvent @ react-dom.development.js:5963
unstable_runWithPriority @ scheduler.development.js:815
runWithPriority$2 @ react-dom.development.js:12188
discreteUpdates$1 @ react-dom.development.js:24359
discreteUpdates @ react-dom.development.js:1486
dispatchDiscreteEvent @ react-dom.development.js:5926
index.js:1 The above error occurred in the <MyApp> component:
in MyApp
in Container (created by AppContainer)
in AppContainer

React will try to recreate this component tree from scratch using the error boundary you provided, Container.

 

Then nothing shows up on my dashboard, but the price change works.

0 Likes