I literally tried all the resources I could find
This, This, and so many other questions on stack overflow here
but I'm not able to get it to work
I first used the
react-native init myapp
Command to start a project and install the react-native-vector-icons as instructed on its github page
I have imported the FontAwesome family like this
import Icon from 'react-native-vector-icons/FontAwesome';
But when ever i run the app I get this error on both android and ios
On Android
The development server returned response error code: 500
URL: http://10.0.2.2:8081/index.delta?platform=android&dev=true&minify=false
Body:
{"type":"InternalError","errors":[],"message":"Metro Bundler has encountered an internal error, please check your terminal error output for more details"}
processBundleResult
BundleDownloader.java:242
access$100
BundleDownloader.java:41
onResponse
BundleDownloader.java:208
execute
RealCall.java:135
run
NamedRunnable.java:32
runWorker
ThreadPoolExecutor.java:1112
run
ThreadPoolExecutor.java:587
run
Thread.java:818
On iOS
Failed to load bundle(http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false) with error:(Metro Bundler has encountered an internal error, please check your terminal error output for more details (null))
__38-[RCTCxxBridge loadSource:onProgress:]_block_invoke.242
RCTCxxBridge.mm:419
___ZL36attemptAsynchronousLoadOfBundleAtURLP5NSURLU13block_pointerFvP18RCTLoadingProgressEU13block_pointerFvP7NSErrorP9RCTSourceE_block_invoke.118
__80-[RCTMultipartDataTask URLSession:streamTask:didBecomeInputStream:outputStream:]_block_invoke
-[RCTMultipartStreamReader emitChunk:headers:callback:done:]
-[RCTMultipartStreamReader readAllPartsWithCompletionCallback:progressCallback:]
-[RCTMultipartDataTask URLSession:streamTask:didBecomeInputStream:outputStream:]
__88-[NSURLSession delegate_streamTask:didBecomeInputStream:outputStream:completionHandler:]_block_invoke
__NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__
-[NSBlockOperation main]
-[__NSOperationInternal _start:]
_dispatch_client_callout
_dispatch_block_invoke_direct
_dispatch_client_callout
_dispatch_block_invoke_direct
dispatch_block_perform
__NSOQSchedule_f
_dispatch_client_callout
_dispatch_continuation_pop
_dispatch_async_redirect_invoke
_dispatch_root_queue_drain
_dispatch_worker_thread3
_pthread_wqthread
start_wqthread
And on the debugging console I get this errors
deltaUrlToBlobUrl.js:31 GET http://localhost:8081/index.delta?platform=android&dev=true&minify=false 500 (Internal Server Error)
DeltaPatcher.js:58 Uncaught (in promise) Error: DeltaPatcher should receive a fresh Delta when being initialized
at DeltaPatcher.applyDelta (DeltaPatcher.js:58)
at deltaUrlToBlobUrl (deltaUrlToBlobUrl.js:34)
at <anonymous>
I'll be very glad if I could get it working. Thanks in advance.
I finally found the solution
This happens only in the react-native version 0.52.0
The file it is trying to find does in fact declare that module. Something about the order of file searching must have changed with the recent release.
Try this
rm ./node_modules/react-native/local-cli/core/__fixtures__/files/package.json
Link 1, Link 2
Use npm you can install it in a easy way.Follow the below commonds in the root folder:
* npm install react-native-vector-icons
* react-native link
Related
I was trying to install jquery on my Angular project and after write some jquery dependency on package.json doc and type npm update, the console says Error: Module not found: Error: Can't resolve 'angular2-moment'.
Error occurs in the template of component RegisterComponent.
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
× Failed to compile.
✔ Browser application bundle generation complete.
Initial Chunk Files | Names | Raw Size
main.js | main | 83.62 kB |
runtime.js | runtime | 6.51 kB |
4 unchanged chunks
Build at: 2023-01-10T02:39:00.432Z - Hash: 2a1b1b37176d6913 - Time: 536ms
./src/app/app.module.ts:7:0-47 - Error: Module not found: Error: Can't resolve 'angular2-moment' in 'C:\Users\xxxxxx\Desktop\Proyectos IT\registro_cintas\client\src\app'
Error: src/app/app.component.html:6:34 - error NG8002: Can't bind to 'routerLink' since it isn't a known property of 'a'.
6 <a class="link-home" [routerLink]="['/home']">
continue...
~~~~~~~~~~~~~~~~~~~~~~~~
I tryed installing ngx-moment, angular2-moment again or uninstalling this last one algo I erase the entire folder and made a git clone from the last working commit but nothing, I think the angular2-moment it's not compatible with my Angular version but I don't know what to do.
I am trying to white label this github repo.
https://github.com/RocketChat
Here is the white label guide that the RocketChat has provided.
https://developer.rocket.chat/mobile-app/mobile-app-white-labelling/ios-app-white-labelling
This library is for react native. I am facing this issue when I try to run the project.
The project is failing the build process with this error.
> PhaseScriptExecution Upload\ source\ maps\ to\ Bugsnag
> /Users/macbook/Library/Developer/Xcode/DerivedData/RocketChatRN-adkttzebukwzincfwduuaihsdgwi/Build/Intermediates.noindex/RocketChatRN.build/Debug-iphoneos/RocketChatRN.build/Script-88055964DAAE45B1A4886C27.sh
> (in target 'RocketChatRN' from project 'RocketChatRN')
> cd /Users/macbook/Rocket.Chat.ReactNative-develop/ios
> /bin/sh -c /Users/macbook/Library/Developer/Xcode/DerivedData/RocketChatRN-adkttzebukwzincfwduuaihsdgwi/Build/Intermediates.noindex/RocketChatRN.build/Debug-iphoneos/RocketChatRN.build/Script-88055964DAAE45B1A4886C27.sh
>
> ℹ Preparing upload of React Native source map (dev / ios) › Reading
> source map
> "/var/folders/sz/jj5jd6j54kd505vxsyxvlk1h0000gn/T//bcd7e9d7452d009ff844f5acf22fb2f3-main.jsbundle.map"
> › Reading bundle file
> "/Users/macbook/Library/Developer/Xcode/DerivedData/RocketChatRN-adkttzebukwzincfwduuaihsdgwi/Build/Products/Debug-iphoneos/main.jsbundle"
> ℹ Applying transformations to source map › Ensuring sourcesContent
> field is populated › Stripping project root from sources › Initiating
> upload to "https://upload.bugsnag.com/react-native-source-map"
ERROR The request timed out.
Connection timed out
at ClientRequest.<anonymous> (/Users/macbook/Rocket.Chat.ReactNative-develop/node_modules/#bugsnag/source-maps/dist/Request.js:190:21)
at Object.onceWrapper (node:events:641:28)
at ClientRequest.emit (node:events:527:28)
at TLSSocket.emitRequestTimeout (node:_http_client:771:9)
at Object.onceWrapper (node:events:641:28)
at TLSSocket.emit (node:events:539:35)
at TLSSocket.Socket._onTimeout (node:net:516:8)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)
I have tried to remove the source map upload. See Screen Shot 1
It keeps on giving the same error still.
It says bugsnag source map failed to upload and is timing out. I have no prior experience with React Native and I am just trying to white label their code. So any help will be appreciated.
Would you be able to check your package.json file for which version of #bugsnag/source-maps you are using? If you are using anything prior to v2.3.0 of #bugsnag/source-maps you could try updating as it has now increased the default timeout and made some other improvements.
Try this, (M1 Mac only I guess)
Go to the target you want to archive
Build settings ---> Architectures ---> Excluded Architectures
Delete arm64
Also another possible reason could be that Xcode is using an outdated version of Node
By default, Xcode will use the Node binary located at /usr/local/bin/node. Check its version by running:
/usr/local/bin/node -v
node -v
If the first command outputs an older version of Node, simply delete it and replace it with a symlink to the newer one:
rm -rf /usr/local/bin/node
ln -s $(which node) /usr/local/bin/node
i tried to install netlifycms to my gatsby-config.js but its show error unreachable. how i can fix it?
my github repo https://github.com/muhammadizzuddin/portofolio/blob/main/gatsby-config.js
ERROR
There was a problem loading plugin "gatsby-plugin-netlify-cms". Perhaps you need to install its package?
Use --verbose to see actual error.
ERROR
Failed to resolve gatsby-plugin-netlify-cms unreachable
Error: unreachable
please help me.
ERROR
There was a problem loading plugin "gatsby-plugin-netlify-cms". Perhaps you need to install its package?
Use --verbose to see actual error.
ERROR
Failed to resolve gatsby-plugin-netlify-cms unreachable
Error: unreachable
- load.ts:144 resolvePlugin
[portofolio]/[gatsby]/src/bootstrap/load-plugins/load.ts:144:11
- index.js:37 resolveTheme
[portofolio]/[gatsby]/src/bootstrap/load-themes/index.js:37:29
- index.js:115
[portofolio]/[gatsby]/src/bootstrap/load-themes/index.js:115:30
- util.js:16 tryCatcher
[portofolio]/[bluebird]/js/release/util.js:16:23
- reduce.js:166 Object.gotValue
[portofolio]/[bluebird]/js/release/reduce.js:166:18
- reduce.js:155 Object.gotAccum
[portofolio]/[bluebird]/js/release/reduce.js:155:25
- util.js:16 Object.tryCatcher
[portofolio]/[bluebird]/js/release/util.js:16:23
- promise.js:547 Promise._settlePromiseFromHandler
[portofolio]/[bluebird]/js/release/promise.js:547:31
- promise.js:604 Promise._settlePromise
[portofolio]/[bluebird]/js/release/promise.js:604:18
- promise.js:649 Promise._settlePromise0
[portofolio]/[bluebird]/js/release/promise.js:649:10
- promise.js:729 Promise._settlePromises
[portofolio]/[bluebird]/js/release/promise.js:729:18
- async.js:93 _drainQueueStep
[portofolio]/[bluebird]/js/release/async.js:93:12
- async.js:86 _drainQueue
[portofolio]/[bluebird]/js/release/async.js:86:9
- async.js:102 Async._drainQueues
[portofolio]/[bluebird]/js/release/async.js:102:5
- async.js:15 Immediate.Async.drainQueues [as _onImmediate]
[portofolio]/[bluebird]/js/release/async.js:15:14
- timers.js:462 processImmediate
internal/timers.js:462:21
not finished open and validate gatsby-configs - 0.591s
The link is broken so I've assumed that the working one is https://github.com/muhammadizzuddin/my-blog.
You just need to add the gatsby-plugin-netlify-cms to your package.json by running
npm i gatsby-plugin-netlify-cms
This will update your package.json file and will notify Netlify which packages needs to be installed when deploying.
create laravel 5 project:
composer create-project laravel/laravel wifi dev-develop --prefer-dist
Error:
PHP Fatal error: Uncaught exception 'PharException' with message 'phar "/usr/local/bin/composer.phar" has a broken signature' in /usr/local/bin/composer.phar:23
Stack trace:
0 /usr/local/bin/composer.phar(23): Phar::mapPhar('composer.phar')
1 {main}
thrown in /usr/local/bin/composer.phar on line 23
This is a composer problem not a Laravel one.
Your composer.phar may be corrupted try to re-download the composer using the instructions from here
This is a composer problem, try:
Sudo su
composer self-update
I am trying to get Frank/Cucumber Framework to run on Yosemite with XCode 6.1.
I have followed the instructions on how to install and frankify a project by:
gem install frank-cucumber
frank setup (in the project folder)
frank build
frank launch
Only the last part fails with a segmentation fault:
LAUNCHING APP...
sh: line 1: 15828 Trace/BPT trap: 5 /Library/Ruby/Gems/2.0.0/gems/sim_launcher-0.4.13/lib/sim_launcher/../../native/ios-sim "showsdks" 2>&1
sh: line 1: 15832 Segmentation fault: 11 /Library/Ruby/Gems/2.0.0/gems/sim_launcher-0.4.13/lib/sim_launcher/../../native/ios-sim "launch" "/Volumes/Project/CucuTest/Frank/frankified_build/Frankified.app" "--sdk" "--family" "iphone" "--exit" 2>&1
I know, that it is required to add the accessibility for Apps, so that the computer can be controlled by Apps. In Yosemite this has changed and I could not add /usr/bin/frank to the list, but I added the Terminal.app. Is this the problem or am I looking in the wrong place.
This is the first time I am using Frank/Cucumber.
For me installing ios-sim version 3 using brew install ios-sim as noted here did the trick.
Just want to re-iterate this question and ask for any help. I am seeing the same issue. I am also not clear on the steps to add accessibility and anything else under Yosemite.
sh: line 1: 6180 Trace/BPT trap: 5 /Library/Ruby/Gems/2.0.0/gems/sim_launcher-0.4.13/lib/sim_launcher/../../native/ios-sim "showsdks" 2>&1
sh: line 1: 6184 Segmentation fault: 11 /Library/Ruby/Gems/2.0.0/gems/sim_launcher-0.4.13/lib/sim_launcher/../../native/ios-sim "launch" "/Users/ric
Hmmm.... Actually looks like there is an upstream Ruby error on the "Frank Setup"
create Frank/libShelleyMac.a
create Frank/plugins
System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126:in `require': cannot load such file -- xcodeproj/prebuilt/universal.x86_64-darwin14-2.0.0/xcodeproj_ext (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126:in `require'
from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.14.1/lib/xcodeproj/ext.rb:6:in `rescue in <top (required)>'