customerio / customerio-expo-plugin

MIT License
11 stars 9 forks source link

Error installing and running the project #86

Closed dennisdelima21pe closed 1 year ago

dennisdelima21pe commented 1 year ago

I'm using expo managed, but when I do all the installation and configuration steps according to the documentation, the following error appears Error: The package 'customerio-reactnative' doesn't seem to be linked. Make sure:

xtreem88 commented 1 year ago

Hi @dennisdelima21pe Did you install the customerio-reactnative package?

oallanmendes commented 1 year ago

Hi @xtreem88 !

I work with @dennisdelima21pe . We did install customerio-reactnative package.

xtreem88 commented 1 year ago

What version of customerio-reactnative do you have installed?

dennisdelima21pe commented 1 year ago

Expo:47.0.0 customerio-expo-plugin : ^1.0.0-beta.10 customerio-reactnative : ^2.4.2 @xtreem88

dennisdelima21pe commented 1 year ago

o erro acontece quando inicializo o sdk import React, {useEffect} de 'react'; import { CustomerIO, CustomerIOEnv, Region } from 'customerio-reactnative';

app const = () => {

useEffect(() => { const env = new CustomerIOEnv() env.siteId = "YourSiteId" env.apiKey = "YourAPIKey"

// A região é opcional, o padrão é Region.US. // Use Region.EU para espaços de trabalho baseados na UE. env.region = Region.US

CustomerIO.initialize(env) }, []) IN App.js @xtreem88

xtreem88 commented 1 year ago

@dennisdelima21pe Can you try and delete your node_modules folder and run npm install again?

dennisdelima21pe commented 1 year ago

Yes, I did that, but the error still persists. Before the pre build, when initializing the sdk, the error occurs, a print below the error that is appearing.

image

levibostian commented 1 year ago

Thanks for sharing the full error message, @dennisdelima21pe.

When you say, "Before the pre build, when initializing the sdk, the error occurs,", does that mean that you have not yet run expo prebuild --clean? If you have not, I suggest running that, running pod install --project-directory=ios, and then running the app again.

If you see an error again, it would be helpful to see your package.json, ios/Podfile, ios/Podfile.lock, and app.json.

You can send those files to win@customer.io instead of in this public issue if it's helpful.

levibostian commented 1 year ago

Closing due to inactivity. If you're still encountering problems, feel free to comment back on issue or send a support request to win@customer.io.