Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Encountering an error during MSW execution in browser. #1124

Closed
jinmayamashita opened this issue Nov 16, 2023 · 2 comments
Closed

[BUG] Encountering an error during MSW execution in browser. #1124

jinmayamashita opened this issue Nov 16, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@jinmayamashita
Copy link
Collaborator

jinmayamashita commented Nov 16, 2023

Describe the bug

An error in MSW occurs when executed in the browser, preventing it from running.

By the way, in the generated template, the path for the MSW mock server is also incorrect.

To Reproduce

  1. Run create-codes cli to complete the template setup.
  2. Run pnpm i in the installed directory.
  3. pnpm dev and connect to http://localhost:3000/ in the browser.
  4. An error is occurring

Expected behavior

[MSW] Mocking enabled is displayed in the browser console

Related packages/templates

create-codes

Screenshots (optional)

Screenshot 2023-11-17 at 0 37 31

Additional context (optional)

There was a related issue. I tried it, but it didn't work as expected.

@jinmayamashita jinmayamashita added the bug Something isn't working label Nov 16, 2023
@jinmayamashita jinmayamashita changed the title [BUG] Encountering an error during MSW execution in Browser. [BUG] Encountering an error during MSW execution in browser. Nov 16, 2023
@jinmayamashita jinmayamashita self-assigned this Nov 26, 2023
@ptrkdan
Copy link
Collaborator

ptrkdan commented Dec 12, 2023

@jinmayamashita
Just to confirm, has this issue also been fixed by #1127?

@ptrkdan
Copy link
Collaborator

ptrkdan commented Dec 14, 2023

Confirmed that it was fixed by #1127!

@ptrkdan ptrkdan closed this as completed Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants