narinluangrath / cypress-wait-for-stable-dom

Cypress command to wait until DOM has finished changing
MIT License
17 stars 5 forks source link

Options type conflict with other npm package @4tw/cypress-drag-drop #6

Open papatelst opened 2 months ago

papatelst commented 2 months ago

I have a cypress typescript project. I added following new npm package : "cypress-wait-for-stable-dom": "^0.1.0". When I run "npm run build" command after adding this package, it throws following error in console "Error: node_modules/@4tw/cypress-drag-drop/index.d.ts(8,6): error TS2300: Duplicate identifier 'Options'. Error: node_modules/cypress-wait-for-stable-dom/src/index.d.ts(4,6): error TS2300: Duplicate identifier 'Options'. Error: Process completed with exit code 2". It looks like 'cypress-wait-for-stable-dom' package has conflict with existing npm package : "@4tw/cypress-drag-drop": "^2.2.5". Both packages 'index.d.ts' files have type Options = defined which is causing this error How do I fix this error ? Can you rename the 'Options' type to 'WaitForStableDOMOptions' in your package to avoid this conflict ? It conflicts with following Options type in 'cypress-drag-drop' package image

papatelst commented 2 months ago

@narinluangrath Can you please take a look at this issue ?