react-native-ai icon indicating copy to clipboard operation
react-native-ai copied to clipboard

Web version error in Expo Go

Open vikram-s-narayan opened this issue 1 year ago • 0 comments

Error below:


› Using Expo Go
› Press s │ switch to development build

› Press a │ open Android
› Press i │ open iOS simulator
› Press w │ open web

› Press j │ open debugger
› Press r │ reload app
› Press m │ toggle menu
› Press o │ open project code in your editor

› Press ? │ show all commands

› Open in the web browser...
› Press ? │ show all commands
(node:88282) [DEP_WEBPACK_DEV_SERVER_CONSTRUCTOR] DeprecationWarning: Using 'compiler' as the first argument is deprecated. Please use 'options' as the first argument and 'compiler' as the second argument.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:88282) [DEP_WEBPACK_DEV_SERVER_LISTEN] DeprecationWarning: 'listen' is deprecated. Please use the async 'start' or 'startCallback' method.
ERROR in ./node_modules/react-native/Libraries/LogBox/LogBox.js:14
Module not found: Can't resolve '../Utilities/Platform'
  12 | import type {ExtendedExceptionData} from './Data/parseLogBoxLog';
  13 |
> 14 | import Platform from '../Utilities/Platform';
  15 | import RCTLog from '../Utilities/RCTLog';
  16 |
  17 | export type {LogData, ExtendedExceptionData, IgnorePattern};

ERROR in ./node_modules/@ronradtke/react-native-markdown-display/src/index.js 146:30
Module parse failed: Unexpected token (146:30)
File was processed with these loaders:
 * ./node_modules/source-map-loader/dist/cjs.js
You may need an additional loader to handle the result of these loaders.
|     onLinkPress,
|     maxTopLevelChildren = null,
>     topLevelMaxExceededItem = <Text key="dotdotdot">...</Text>,
|     allowedImageHandlers = [
|       'data:image/png;base64',

web compiled with 2 errors

In the browser (Chrome) the following error is seen:

Uncaught Error: Module parse failed: Unexpected token (146:30)
File was processed with these loaders:
 * ./node_modules/source-map-loader/dist/cjs.js
You may need an additional loader to handle the result of these loaders.
|     onLinkPress,
|     maxTopLevelChildren = null,
>     topLevelMaxExceededItem = <Text key="dotdotdot">...</Text>,
|     allowedImageHandlers = [
|       'data:image/png;base64',
    at ./node_modules/@ronradtke/react-native-markdown-display/src/index.js (logger.ts:47:1)
    at __webpack_require__ (bootstrap:24:1)
    at fn (hot module replacement:62:1)
    at ./src/screens/chat.tsx (assistant.tsx:791:1)
    at __webpack_require__ (bootstrap:24:1)
    at fn (hot module replacement:62:1)
    at ./src/screens/index.ts (images.tsx:608:1)
    at __webpack_require__ (bootstrap:24:1)
    at fn (hot module replacement:62:1)
    at ./src/main.tsx (context.tsx:21:1)

vikram-s-narayan avatar Jan 04 '24 03:01 vikram-s-narayan