Closed VinayBerry closed 2 years ago
https://github.com/VinayBerry/custom-appium-plugin <- link to my repository
nevermind i figured out you guys are using tsc in the example and pointing to the build folder. I also did this and mine worked.
👍
let us know when your plugin is done!
I'm trying to create a local plugin but its complaining about the use of import statement outside of a module. If I convert the package to type: module, then this appears
"Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: C:\Users\milks\node\appium-plugin\index.js"
. Not sure what I'm missing to make this work.I tried cloning this repository and installing the 'images' plugin and gives the same error.
If I install directly from npm instead of from the cloned repository and use the images plugin everything works fine.