Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Cannot find module error on Windows #2

Closed
layanto opened this issue Aug 18, 2021 · 11 comments
Closed

Cannot find module error on Windows #2

layanto opened this issue Aug 18, 2021 · 11 comments
Labels
bug Something isn't working comp:runner

Comments

@layanto
Copy link

layanto commented Aug 18, 2021

Following getting started (https://peeky.netlify.app/guide/#our-first-test), I am getting Cannot find module

Cannot find module 'c:\Projects\peeky\src\test-gOdPlmAKc.js'
Require stack:
- c:\Projects\peeky\node_modules\@peeky\runner\dist\worker.js

Note that the spec file is in c:\Projects\peeky\src\example.spec.js, there is no test-gOdPlmAKc.js file.

@layanto
Copy link
Author

layanto commented Aug 19, 2021

Looks like not working on Windows. But working on Windows with WSL (Windows Subsystem Linux). With Ubuntu WSL, both npm run test and npm run test:open work as expected.
Windows:
image
Ubuntu WSL:
image

@layanto layanto changed the title Cannot find module Cannot find module error on Windows Aug 19, 2021
@Akryum
Copy link
Owner

Akryum commented Aug 19, 2021

I didn't test peeky on Windows yet 🐈 (Ofc it had to not work on Windows 🤦 )

@flicker71
Copy link

Hey, we also have the following error on windows:
image

(without WSL)
Thanks for your help!

@Akryum
Copy link
Owner

Akryum commented Dec 7, 2021

The build and execute pipeline has been completely reworked with Vite. Please try again and let me know if the issue is still present.

@mathieutu
Copy link
Contributor

Hi @Akryum!
(@flicker71 is one of my student, I told him to leave you this message 😉)

Thanks for your efficiency!
Could you tag a release so we can test on windows computers?

@Akryum
Copy link
Owner

Akryum commented Dec 7, 2021

Done, 0.6.0 available

@mathieutu
Copy link
Contributor

mathieutu commented Dec 7, 2021

@flicker71 could you please update your dependencies (yarn upgrade @peeky/cli --latest) and tell us if yarn test is working on your computer?

Thanks!

@bbb0ttle
Copy link

image
still got this error after yarn upgrade @peeky/cli -latest

@Akryum Akryum closed this as completed in 34826cb Dec 16, 2021
@layanto
Copy link
Author

layanto commented Dec 17, 2021

"peeky run" now works, but "peeky open" still doesn't work for me on Windows.

image

@layanto
Copy link
Author

layanto commented Dec 20, 2021

"peeky open" works with latest peeky release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working comp:runner
Projects
None yet
Development

No branches or pull requests

6 participants
@layanto @Akryum @bbb0ttle @mathieutu @flicker71 and others