DEV Community

Aaron K Saunders
Aaron K Saunders

Posted on • Edited on • Originally published at clearlyinnovative.com

3 1

Using Ionic Framework VS Code Extension To Add Capacitor To Vite ReactJS Project

Simple video walkthrough as I try to utilize the Ionic VS Code Extension to add native functionality to a Vite ReactJS Application. I wanted to show how you can create native applications from web applications using Ionic Framework Capacitor.

A Visual Studio Code Extension for Ionic - Ionic Blog -
https://ionicframework.com/blog/a-visual-studio-code-extension-for-ionic/

I think this is important to show that Ionic has a ReactJS Component Library that I am using in the React Application and a tool Capacitor, that I am using to create the native application. This video shows that the two are separate and that you don't have to start with an Ionic Project to get to a native application. In fact you don't need to use any of the Ionic Framework UI Components to deploy a web application to a native device, you only need Capacitor

Some Observations

I did find some interesting challenges and observations which I have listed below and will add to the project's github issues.

  • How to debug on a native device? You can debug on the web, but connecting to a native device through the extension would be a game changer IMHO
  • Could not configure the build directory through the UI. There are some options to configure, but not the build directory. Adding this would make it easier to onboard non-ionic projects
  • Why do I always have to specify the device when running the app? This is just another point to make the process seamless. I should be able to set a default device to use based on the platform instead of being forced to select it every time
  • Why does sync fail, it is missing some property? This is an issue, was displaying an error message and breaking the development flow
  • Can we integrate build and run on device into one command? I think I am looking for this because live-reload was not integrated into the tool


Looking for support with your cross-platform mobile solution using Ionic Framework? Contact Me at my company Clearly Innovative Inc for a free 30-minute Consultation
www.clearlyinnovative.com

SurveyJS custom survey software

JavaScript UI Libraries for Surveys and Forms

SurveyJS lets you build a JSON-based form management system that integrates with any backend, giving you full control over your data and no user limits. Includes support for custom question types, skip logic, integrated CCS editor, PDF export, real-time analytics & more.

Learn more

Top comments (0)

SurveyJS custom survey software

JavaScript Form Builder UI Component

Generate dynamic JSON-driven forms directly in your JavaScript app (Angular, React, Vue.js, jQuery) with a fully customizable drag-and-drop form builder. Easily integrate with any backend system and retain full ownership over your data, with no user or form submission limits.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay