HomeiOS Developmentandroid - Having subject in creating cordova plugin and likewise having drawback...

android – Having subject in creating cordova plugin and likewise having drawback in importing it in ionic cordova challenge


I need to create a cordova plugin in my native system however having subject whereas importing and putting in it in my ionic cordova challenge, i’m having error whereas attempting to import the cordova plugin in ionic cordova challenge, so i desire a answer that how i create a cordova challenge in my native system first then after testing will to publish it.
I’m utilizing under versions-
ionic -v
7.2.0
cordova -v
12.0.0 ([email protected])
npm -v
10.2.3
node -v
v18.19.0
nvm -v
1.1.11

Error –
Error:
Construct at: 2024-01-29T14:45:00.196Z – Hash: 4798c2666d0154ce – Time: 1087ms
Error: src/app/dwelling/dwelling.web page.ts:25:29 – error TS2307: Can not discover module ‘io.electrosoft.helloworld’ or its corresponding sort declarations.
25 import HelloTestPlugin from ‘io.electrosoft.helloworld’;
import { HelloTestPlugin } from ‘io.electrosoft.helloworld’;
× Did not compile.

Getting error in each methods, whereas importing the plugin.

I’m having under information and folders in my cordova plugin
HelloTestPluginplugin.xml
HelloTestPluginsrc
HelloTestPluginsrcandroid
HelloTestPluginsrcandroidHelloTestPlugin.java
pluginHelloTestPluginwww
HelloTestPluginwwwHelloTestPlugin.js
HelloTestPluginpackage.json

I attempted creating cordova plugin having under information in my cordova plugin –
HelloTestPluginplugin.xml
HelloTestPluginsrc
HelloTestPluginsrcandroid
HelloTestPluginsrcandroidHelloTestPlugin.java
pluginHelloTestPluginwww
HelloTestPluginwwwHelloTestPlugin.js
HelloTestPluginpackage.json

However not capable of entry and import this in my ionic cordova proejct.

I need to create a cordova plugin in my native system and after testing it then i need to publish it, I need to import that cordova challenge in my ionic cordova challenge for each android and ios platform.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments