Open edsamodra opened 1 year ago
I will double check that. pushing module compatible with ESM and commonJS, use to cause some issues.
Okay, I got it
In some cases you need to modify package.json to use it as an ESM or normal CommonJS,
for using as ESM you will use :
import proxmoxApi from 'proxmox-api'
and to use it as CommonJS you wil use it as :
const proxmoxApi = require('proxmox-api').proxmoxApi;
it works perfectly!
Hi,
I'm experiencing issues with CommonJS/ESM that are only apparent when using TypeScript.
I seldom use the require syntax.
I need to conduct some tests to ensure that PR #23 does not have any side effects on CommonJS TypeScript projects.
Please excuse my delayed response time, as I am currently without housing.
Hi @UrielCh and @bnjunge, Currently I am developing my project using the proxmox-api package. I think this project contributed to my project. However, I have a warning here.
It is not complicated to solve. I added this in the
package.json
file and then solved it. I wonder if can I merge this into your project. Or is there any alternative way around it? Thanks