Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

TypeError: Cannot read properties of undefined (reading 'applyMiddlewareOptions') #323

Closed
ilyaskarim opened this issue Jan 4, 2022 · 0 comments
Assignees

Comments

@ilyaskarim
Copy link
Collaborator

ilyaskarim commented Jan 4, 2022

The error happens when we initialize the project like this

wertik({
  port: port,
  graphql: useGraphql(),
  express: expressApp
})

Fix: Add this

props = props ? props : {}

Possible work around:

graphql: useGraphql({}),

Before this line: https://github.com/Uconnect-Technologies/wertik-js/blob/master/src/next/graphql/index.ts#L13

ilyaskarim added a commit that referenced this issue Jan 4, 2022
ilyaskarim added a commit that referenced this issue Jan 4, 2022
ilyaskarim added a commit that referenced this issue Jan 4, 2022
ilyaskarim added a commit that referenced this issue Jan 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants