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

interceptors.createInterceptor is not a function #91

Closed
Vikaskumargd opened this issue May 21, 2022 · 5 comments · Fixed by #92
Closed

interceptors.createInterceptor is not a function #91

Vikaskumargd opened this issue May 21, 2022 · 5 comments · Fixed by #92

Comments

@Vikaskumargd
Copy link

Have you experienced this bug with the latest version of the template?

Yes

Steps to Reproduce

  1. clone this repository or run npx create-remix --template remix-run/indie-stack blog-tutorial (following this quickstart tutorial https://remix.run/docs/en/v1/tutorials/blog)
  2. npm run dev

Expected Behavior

the app should be running on http://localhost:3000/,

Actual Behavior

throw an error:

`> Executing task: npm run dev <

dev
run-p dev:*

dev:css
npm run generate:css -- --watch

dev:remix
cross-env NODE_ENV=development binode --require ./mocks -- @remix-run/dev:remix dev

C:\Users\vikas\source\repos\temp\remix-experiments\indie-stack\node_modules\msw\node\lib\index.js:8143
const interceptor = interceptors.createInterceptor({
^

TypeError: interceptors.createInterceptor is not a function
at setupServer (C:\Users\vikas\source\repos\temp\remix-experiments\indie-stack\node_modules\msw\node\lib\index.js:8143:42)
at Object. (C:\Users\vikas\source\repos\temp\remix-experiments\indie-stack\mocks\index.js:3:16)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at Module._preloadModules (node:internal/modules/cjs/loader:1282:12)
at loadPreloadModules (node:internal/bootstrap/pre_execution:539:5)
at prepareMainThreadExecution (node:internal/bootstrap/pre_execution:85:3)

generate:css
tailwindcss -o ./app/styles/tailwind.css "--watch"

Rebuilding...
Done in 269ms.`

@MichaelDeBoey
Copy link
Member

MichaelDeBoey commented May 21, 2022

Same as remix-run/blues-stack#75 & remix-run/grunge-stack#60

Can confirm

https://github.com/remix-run/indie-stack/runs/6536214432?check_suite_focus=true#step:9:53

@AriPerkkio
Copy link

Any quick work-arounds for this? Trying to get the tutorial running without spending much time debugging. 😄

@MwirabuaTimothy
Copy link

I just experienced the same here!

@MichaelDeBoey
Copy link
Member

Problem seems to be with msw, so @kettanaito could probably help us out here.

@kettanaito
Copy link

There's been an issue with one of the MSW dependencies (@mswjs/interceptors). The release has been reverted and is now at 0.15.3. Re-installing dependencies will fix the issue.

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 a pull request may close this issue.

5 participants