Skip to content
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

Integration with Appflow #22

Open
Amanida opened this issue Aug 10, 2021 · 2 comments
Open

Integration with Appflow #22

Amanida opened this issue Aug 10, 2021 · 2 comments

Comments

@Amanida
Copy link

Amanida commented Aug 10, 2021

Thanks for the good example. Both Ionic and Capacitor are great products.
But I'm having trouble integrating it with Appflow. When installing Appflow SDK, react-scripts build is required, but it is not compatible with nextjs environment. Please let me know if there is any way. Can't I use nextjs and Appflow together?

Installation Appflow SDK : https://ionic.io/docs/appflow/quickstart/installation

Here's what I tried.

$ ionic deploy add \ 
--app-id="APPFLOW_APP_ID" \
--channel-name="Production" \
--update-method="auto"
[WARN] Live Updates plugin already added. Reconfiguring only.
> ionic deploy manifest
[OK] Appflow Deploy manifest written to ./build/pro-manifest.json!
> ionic capacitor sync
> react-scripts build

[INFO] Looks like react-scripts isn't installed in this project.
       
       This package is required for this command to work properly.

? Install react-scripts? No
[WARN] Not installing--here's how to install manually: npm i -D -E react-scripts

[ERROR] react-scripts is required for this command to work properly.

When react-scripts is installed, files not used by nextjs such as index.html are required.

@mlynch
Copy link
Owner

mlynch commented Aug 10, 2021

Hey thanks for the heads up, we'll look at why react-scripts is required here...

@Amanida
Copy link
Author

Amanida commented Aug 18, 2021

Is there any update? 😢 @mlynch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants