Language : typescript Version 4.1.3
Framework: next 12.1.5
moralis : 1.5.10
react-moralis : 1.3.5
Got below info when yarn build.
[ ] info - Generating static pages (0/6)It looks like you're using the browser version of the SDK in a node.js environment. You should require('moralis/node') instead.
It looks like you're using the browser version of the SDK in a node.js environment. You should require('moralis/node') instead.
It looks like you're using the browser version of the SDK in a node.js environment. You should require('moralis/node') instead.
user ======> null
/Volumes/macOSdat/frontend/bcProject/moralis/moralis-dashboard6/node_modules/moralis/lib/browser/StorageController.browser.js:23
return localStorage.getItem(path);
^
ReferenceError: localStorage is not defined
at Object.getItem (/Volumes/macOSdat/frontend/bcProject/moralis/moralis-dashboard6/node_modules/moralis/lib/browser/StorageController.browser.js:23:5)
at Object.getItemAsync (/Volumes/macOSdat/frontend/bcProject/moralis/moralis-dashboard6/node_modules/moralis/lib/browser/Storage.js:54:48)
at Object.currentInstallationId (/Volumes/macOSdat/frontend/bcProject/moralis/moralis-dashboard6/node_modules/moralis/lib/browser/InstallationController.js:34:29)
at Object.request (/Volumes/macOSdat/frontend/bcProject/moralis/moralis-dashboard6/node_modules/moralis/lib/browser/RESTController.js:387:54)
at Object.run (/Volumes/macOSdat/frontend/bcProject/moralis/moralis-dashboard6/node_modules/moralis/lib/browser/Cloud.js:172:34)
at run (/Volumes/macOSdat/frontend/bcProject/moralis/moralis-dashboard6/node_modules/moralis/lib/browser/Cloud.js:98:52)
at Function.<anonymous> (/Volumes/macOSdat/frontend/bcProject/moralis/moralis-dashboard6/node_modules/moralis/lib/browser/MoralisWeb3.js:885:39)
at tryCatch (/Volumes/macOSdat/frontend/bcProject/moralis/moralis-dashboard6/node_modules/regenerator-runtime/runtime.js:63:40)
at Generator.invoke [as _invoke] (/Volumes/macOSdat/frontend/bcProject/moralis/moralis-dashboard6/node_modules/regenerator-runtime/runtime.js:294:22)
at Generator.next (/Volumes/macOSdat/frontend/bcProject/moralis/moralis-dashboard6/node_modules/regenerator-runtime/runtime.js:119:21)
/Volumes/macOSdat/frontend/bcProject/moralis/moralis-dashboard6/node_modules/moralis/lib/browser/StorageController.browser.js:23
return localStorage.getItem(path);
^