GithubHelp home page GithubHelp logo

Comments (10)

NoriSte avatar NoriSte commented on June 15, 2024

Hi Janahan, could you provide me a minimal repository that reproduces the problem to play with? Do you import other plugins that work out mine is the only one?
Thanks
Stefano

from cypress-wait-until.

NoriSte avatar NoriSte commented on June 15, 2024

More: since you compile Typescript on the fly, are you sure that webpack compiling configuration is set up to correctly include waitUntil types?

from cypress-wait-until.

jbalasingham avatar jbalasingham commented on June 15, 2024

More: since you compile Typescript on the fly, are you sure that webpack compiling configuration is set up to correctly include waitUntil types?
That's what I'm unsure of. I can't find an example of the types being configured on the webpack and based on what I can tell, it is supposed to use the types from the tsconfig.
Let me see if I can create a demo example of the issue. That way you can investigate on the matter.

from cypress-wait-until.

jbalasingham avatar jbalasingham commented on June 15, 2024

@NoriSte I have invited you to the sample repo I created. Master branch is the demo one and the waitUntil branch is with this plugin code implementation. So you can see the code change.

from cypress-wait-until.

NoriSte avatar NoriSte commented on June 15, 2024

The problem is not with the plugin but with the TypeScript configuration. I tried with cypress-pipe too but the problem is the same. It's strange because the config seems correct, the VS Code' TS server finds the types correctly (since it suggest you booth waitUntil and pipe with the autocomplete). I made some tries but I have not managed to get it working, please let me know once you find a solution 🤔

from cypress-wait-until.

NoriSte avatar NoriSte commented on June 15, 2024

@jbalasingham have you worked it out?

from cypress-wait-until.

jbalasingham avatar jbalasingham commented on June 15, 2024

@NoriSte Yeah. Sorry I didn't update. Been busy with some work. The issue was caused by the index file used in support was .ts and not .js. Renaming it fixed the dependency and plugin worked.

Check my repository with the fix I checked in today morning.

from cypress-wait-until.

NoriSte avatar NoriSte commented on June 15, 2024

Good to know!! Thanks for sharing 😊

from cypress-wait-until.

NoriSte avatar NoriSte commented on June 15, 2024

Meanwhile... Cypress supports now TypeScript out of the box 😊

from cypress-wait-until.

jbalasingham avatar jbalasingham commented on June 15, 2024

:D Finally they come onboard.

from cypress-wait-until.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.