I followed the docs on crashlytics/quick-start with autolink, using react-native 0.60.5.
Using the code below (exact copy from docs), I got _crashlytics.default.log is not a function.
import crashlytics from '#react-native-firebase/crashlytics';
function forceCrash() {
crashlytics.log('Testing crash');
crashlytics.crash();
}
I'm trying to think that I don't need change any file on /android/ folder.
The project source code is on github repo.
This was a mistake in the documentation which has been fixed and will be live soon. Correct usage should be:
crashlytics().log('...');
crashlytics().crash();
Related
I would like to use TroisJS (three.js wrapper for Vue) with Nuxt.js. According to the TroisJS documentation (https://troisjs.github.io/guide/install.html#existing-vuejs-3-project) I need to add it to my project like:
import { TroisJSVuePlugin } from 'troisjs';
app.use(TroisJSVuePlugin);
However, I don"t know how to figure out where I should put this code. I would expect the nuxt.config.js file, but I don't seem to quite get it where it should go.
I decided to use TroisJS and not three.js because I thought the former might be easier to import and use. If importing three.js directly is easier, I don't mind using it.
Thank you very much for any help!
In /plugins folder add new file named troisjs-plugin.js with the following content :
import { TroisJSVuePlugin } from 'troisjs';
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(TroisJSVuePlugin )
})
I found a repo with some testing with Trois and Nuxt 3, probably outdated and maybe some apis have changed, but if you wanna check it out: alvarosabu/nuxt3-trois
Also, there's an official repo from the Trois author with a Nuxt 3 custom plugin (probably outdated too) here
I went through the expo-apple-authentication documentation and I think that I followed all of the installation and configuration instructions. However, the emulator is returning the error in the subject line when I try either of the following imports:
import * as AppleAuthentication from "expo-apple-authentication";
import AppleAuthenticationButton from "expo-apple-authentication";
Any idea what the issue might be or how to debug? I previously googled this but couldn't find any references to this error.
I've come across the same error message while trying to use the expo-barcode-scanner package.
In order to use this package, you first have to install the react-native-unimodules package. Its documentation says it is necessary to configure some stuff, one of which is adding some lines of code to the AppDelegate.m file, found inside the ios folder.
The problem was that I forgot to add some lines of code in the AppDelegate.m file, more specifically this part:
- (NSArray<id<RCTBridgeModule>> *)extraModulesForBridge:(RCTBridge *)bridge
{
NSArray<id<RCTBridgeModule>> *extraModules = [_moduleRegistryAdapter extraModulesForBridge:bridge];
// You can inject any extra modules that you would like here, more information at:
// https://facebook.github.io/react-native/docs/native-modules-ios.html#dependency-injection
return extraModules;
}
After adding the code above everything worked!
You can check all necessary changes to the AppDelegate.h and AppDelegate.m files here
When running gridsome build I get window is not defined. Anyone has an example of making vue2-leaflet work with the client only option for gridsome?
Wrap your component inside template with <ClientOnly> tag, more info in my other answer
I've been struggling with the same problem (but with other libraries) and the only solution i've found was to copy the package into src/. Something like :
cp -a node_modules/package-giving-me-headaches src/plugins
and
// main.js
import PackageGivingMeHeadaches from "~/plugins/package-giving-me-headaches"
Depending on the package, you may need to target a specific entry point :
// main.js
import PackageGivingMeHeadaches from "~/plugins/package-giving-me-headaches/src"
You know you need to do that when Gridsome tells you :
"export 'default' (imported as 'PackageGivingMeHeadaches') was not found in '~/plugins/package-giving-me-headaches'
Edit : Yes, i know its not ideal and ugly, but i don't have time to fight for it.
I'm a vue.js beginner and I've been trying to integrate the Quill editor into Vue modules. At first, I tried with the vue-quill plugin but documentation is very poor and I couldn't understand how to use it. Very frustrating.
Now I don't know if I'm better off trying to create my own plugin or if I give the existing plugin a second try and maybe try to enhance it.
What I want is someone to please provide some sample working code to get this going.
Upon inspecting the vue-quill package.json file I noticed it depended on an old version of quill :
"dependencies": {
"quill": "^0.20.1",
...
}
Since I was getting fragment errors from that build I decided to take the original code to suit my needs. At this point, you can copy this modified component and use something like vue-cli to use it.
I can't give you precise steps on vue-cli because my project is based on Laravel, but the idea of storing different .vue files into a components folder should be similar.
Finally, I simply use the component in one of my views :
<quill :content.sync="content"></quill>
Note : I am still fiddling around the component that I uploaded on gist, so take it as a starting point. The code is fairly simple.
I'm trying to use Objective-C--HMTL Parser (https://github.com/zootreeves/Objective-C-HMTL-Parser).
I followed all the instructions carefully and in a new project works fine, but when I try to use it in another I get these errors:
error screenshot
The difference between the two projects is that in the second I use "libsqlite3.dylib".
Thanks, Luigi.
it seems that you didnt import the .m files correctly, you will need to check that HTMLparser.m is included in the compile sources of your project
check screen shot
Compile sources should include HTMLParser.m