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

Fix nodejs import statement in example #1202

Closed
wants to merge 11 commits into from
Closed

Conversation

TimDaub
Copy link

@TimDaub TimDaub commented Apr 12, 2022

kettanaito and others added 11 commits March 15, 2022 12:56
* chore: add "PathParams" to extract params from path strings

* feat(RestHandler): extract path params from the path type

* chore: move "types:ts" config to the root

* fix(matchRequestUrl): strip path parameter modifiers from path names

* feat(rest): remove the "ParamsType" generics

Co-authored-by: Artem Zakharchenko <kettanaito@gmail.com>
…led" message (mswjs#1172)

* fix: add service worker scope and worker script url to "Mocking enabled" message

* chore(printStartMessage): remove context from the function

Co-authored-by: Artem Zakharchenko <kettanaito@gmail.com>
@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit eb028b5:

Sandbox Source
MSW React Configuration

@kettanaito
Copy link
Member

I'm closing this because MSW doesn't have official ESM support. The import format is implied when using a certain module type. I will update the usage examples once ESM support happens.

Thanks for opening this!

@TimDaub
Copy link
Author

TimDaub commented Jul 9, 2022

If msw doesn't have ESM support ur falsely advertising your package's functionality: https://github.com/mswjs/msw#usage-example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Directory import is not supported resolving ES modules
6 participants