nextjs-tailwind-ionic-capacitor-starter icon indicating copy to clipboard operation
nextjs-tailwind-ionic-capacitor-starter copied to clipboard

Integration with Appflow

Open Amanida opened this issue 3 years ago • 2 comments

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.

Amanida avatar Aug 10 '21 07:08 Amanida

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

mlynch avatar Aug 10 '21 16:08 mlynch

Is there any update? 😢 @mlynch

Amanida avatar Aug 18 '21 04:08 Amanida