-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example build fails to run #2504
Comments
facing the same issue Logs for your project will appear below. Press Ctrl+C to exit.
Failed to construct transformer: Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:68:19)
at Object.createHash (node:crypto:138:10)
at stableHash (/Users/xl/Developer/react-native-gifted-chat/example/node_modules/metro-cache/src/stableHash.js:19:8)
at Object.getCacheKey (/Users/xl/Developer/react-native-gifted-chat/example/node_modules/metro-transform-worker/src/index.js:647:7)
at getTransformCacheKey (/Users/xl/Developer/react-native-gifted-chat/example/node_modules/metro/src/DeltaBundler/getTransformCacheKey.js:32:19)
at new Transformer (/Users/xl/Developer/react-native-gifted-chat/example/node_modules/metro/src/DeltaBundler/Transformer.js:180:28)
at /Users/xl/Developer/react-native-gifted-chat/example/node_modules/metro/src/Bundler.js:58:29
at processTicksAndRejections (node:internal/process/task_queues:95:5) {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED' ERROR in ../src/Constant.ts:1
Module not found: Can't resolve 'react-native'
> 1 | import { Platform } from 'react-native'
2 |
3 | export const MIN_COMPOSER_HEIGHT = Platform.select({
4 | ios: 33,
ERROR in ../src/GiftedChat.tsx 55:7
Module parse failed: Unexpected token (55:7)
File was processed with these loaders:
* ../../../.nvm/versions/node/v21.1.0/lib/node_modules/expo-cli/node_modules/source-map-loader/dist/cjs.js
You may need an additional loader to handle the result of these loaders.
| dayjs.extend(localizedFormat)
|
> export interface GiftedChatProps<TMessage extends IMessage = IMessage> {
| /* Message container ref */
| messageContainerRef?: React.RefObject<FlatList<IMessage>>
ERROR in ../src/utils.ts 14:16
Module parse failed: Unexpected token (14:16)
File was processed with these loaders:
* ../../../.nvm/versions/node/v21.1.0/lib/node_modules/expo-cli/node_modules/source-map-loader/dist/cjs.js
You may need an additional loader to handle the result of these loaders.
|
| export function isSameDay(
> currentMessage: IMessage,
| diffMessage: IMessage | null | undefined,
| ) {
web compiled with 3 errors and 29 warnings |
I'm getting the following when trying to run on web..
Unable to run on android as well. I get the message
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Description
I'm encountering an error when trying to run the example build
Steps to Reproduce / Code Snippets
Additional Information
The text was updated successfully, but these errors were encountered: