Open gvlasov opened 4 years ago
My guess would be that @bahmutov/add-typescript-to-cypress
assumes you already use webpack?
I installed webpack
and typescript
and indeed it was the problem that they should have been installed.
The documentation mentions that typescript
package has to be installed, but it doesn't mention that webpack
package has to be installed.
I'm getting Error: Cannot find module 'webpack'
, and my project has been using webpack (^4.29.6
) w/out any problems.
Anyone have an idea of what might be happening?
I added
@bahmutov/add-typescript-to-cypress ^2.1.2
to a fresh project withcypress ^4.9.0
I ran a simple test that uses a page object I created:
As a result of running that test, cypress shows the following error message:
My tsconfig.json (I use tsconfig in project root instead of the one created by
@bahmutov/add-typescript-to-cypress
)My package.json