ethereum-boilerplate/ethereum-react-native-boilerplate

Fails to build web version

CryptoLover705 opened this issue · 0 comments

Just pulled the repo
I ran: npm i -g expo-cli, yarn expo start
Clicked Run in web browser

I am then faced with

×
TypeError: Cannot read properties of undefined (reading 'ignoreAllLogs')
Module../frontend/App.tsx
E:/work/ethereum-react-native-boilerplate-main/ethereum-react-native-boilerplate-main/frontend/App.tsx:32
  29 | 
  30 | import Moralis from "moralis/types";
  31 | 
> 32 | LogBox.ignoreAllLogs();
  33 | 
  34 | // const Activecolor =
  35 | function Home(): JSX.Element {
View compiled
__webpack_require__
E:/work/ethereum-react-native-boilerplate-main/ethereum-react-native-boilerplate-main/webpack/bootstrap:789
  786 | };
  787 | 
  788 | // Execute the module function
> 789 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
      | ^  790 | 
  791 | // Flag the module as loaded
  792 | module.l = true;
View compiled
fn
E:/work/ethereum-react-native-boilerplate-main/ethereum-react-native-boilerplate-main/webpack/bootstrap:100
   97 | 		);
   98 | 		hotCurrentParents = [];
   99 | 	}
> 100 | 	return __webpack_require__(request);
      | ^  101 | };
  102 | var ObjectFactory = function ObjectFactory(name) {
  103 | 	return {
View compiled
Module../frontend/AppWithProviders.tsx
http://localhost:19006/static/js/bundle.js:1184:62
__webpack_require__
E:/work/ethereum-react-native-boilerplate-main/ethereum-react-native-boilerplate-main/webpack/bootstrap:789
  786 | };
  787 | 
  788 | // Execute the module function
> 789 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
      | ^  790 | 
  791 | // Flag the module as loaded
  792 | module.l = true;
View compiled
fn
E:/work/ethereum-react-native-boilerplate-main/ethereum-react-native-boilerplate-main/webpack/bootstrap:100
   97 | 		);
   98 | 		hotCurrentParents = [];
   99 | 	}
> 100 | 	return __webpack_require__(request);
      | ^  101 | };
  102 | var ObjectFactory = function ObjectFactory(name) {
  103 | 	return {
View compiled
(anonymous function)
./index.js?41f5:30
  27 | process.version = "v9.40";
  28 | 
  29 | const { registerRootComponent } = require("expo");
> 30 | const { default: App } = require("./frontend/AppWithProviders");
  31 | 
  32 | // registerRootComponent calls AppRegistry.registerComponent('main', () => App);
  33 | // It also ensures that whether you load the app in the Expo client or in a native build,
View compiled
./index.js
http://localhost:19006/static/js/bundle.js:6765:30
__webpack_require__
E:/work/ethereum-react-native-boilerplate-main/ethereum-react-native-boilerplate-main/webpack/bootstrap:789
  786 | };
  787 | 
  788 | // Execute the module function
> 789 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
      | ^  790 | 
  791 | // Flag the module as loaded
  792 | module.l = true;
View compiled
fn
E:/work/ethereum-react-native-boilerplate-main/ethereum-react-native-boilerplate-main/webpack/bootstrap:100
   97 | 		);
   98 | 		hotCurrentParents = [];
   99 | 	}
> 100 | 	return __webpack_require__(request);
      | ^  101 | };
  102 | var ObjectFactory = function ObjectFactory(name) {
  103 | 	return {
View compiled
0
http://localhost:19006/static/js/bundle.js:363883:18
__webpack_require__
E:/work/ethereum-react-native-boilerplate-main/ethereum-react-native-boilerplate-main/webpack/bootstrap:789
  786 | };
  787 | 
  788 | // Execute the module function
> 789 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
      | ^  790 | 
  791 | // Flag the module as loaded
  792 | module.l = true;
View compiled
(anonymous function)
E:/work/ethereum-react-native-boilerplate-main/ethereum-react-native-boilerplate-main/webpack/bootstrap:856
  853 | 
  854 | 
  855 | // Load entry module and return exports
> 856 | return hotCreateRequire(0)(__webpack_require__.s = 0);
      | ^  857 | 
View compiled
(anonymous function)
http://localhost:19006/static/js/bundle.js:860:10
This screen is visible only in development. It will not appear if the app crashes in production.
Open your browser’s developer console to further inspect this error.  Click the 'X' or hit ESC to dismiss this message.