Description
I've had some issues with npm install, it seems to of cherry picked what to install so I had to manually install some stuff,
the site somewhat works in that /sign-up and /login-in work but when I go to the index page it produces that error on the client.
Network error: Unexpected token I in JSON at position 0 Error: Network error: Unexpected token I in JSON at position 0 at new ApolloError (C:\Users\Admin\Desktop\project\nextjs-firebase-authentication\node_modules\apollo-client\bundle.umd.js:92:26) at C:\Users\Admin\Desktop\project\nextjs-firebase-authentication\node_modules\apollo-client\bundle.umd.js:1588:34 at C:\Users\Admin\Desktop\project\nextjs-firebase-authentication\node_modules\apollo-client\bundle.umd.js:2008:15 at Set.forEach (<anonymous>) at C:\Users\Admin\Desktop\project\nextjs-firebase-authentication\node_modules\apollo-client\bundle.umd.js:2006:26 at Map.forEach (<anonymous>) at QueryManager.broadcastQueries (C:\Users\Admin\Desktop\project\nextjs-firebase-authentication\node_modules\apollo-client\bundle.umd.js:2004:20) at C:\Users\Admin\Desktop\project\nextjs-firebase-authentication\node_modules\apollo-client\bundle.umd.js:1483:29 at process._tickCallback (internal/process/next_tick.js:68:7)
and this error on the terminal,
error ] ./src/services/course/index.ts
[0] Module not found: Can't resolve '../../data/courses' in 'C:\Users\Admin\Desktop\project\nextjs-firebase
[0] { Error: Cannot find module for page: /api/graphql
[0] at pageNotFoundError (C:\Users\Admin\Desktop\project\nextjs-firebase-authentication\node_modules\ne
[0] at Object.getPagePath (C:\Users\Admin\Desktop\project\nextjs-firebase-authentication\node_modules\n
[0] at DevServer.getPagePath (C:\Users\Admin\Desktop\project\nextjs-firebase-authentication\node_module88:26)
[0] at DevServer.handleApiRequest (C:\Users\Admin\Desktop\project\nextjs-firebase-authentication\node_m.js:429:42)
[0] at process._tickCallback (internal/process/next_tick.js:68:7) code: 'ENOENT' }
[0] Network error { ServerParseError: Unexpected token I in JSON at position 0
[0] at JSON.parse ()
[0] at C:\Users\Admin\Desktop\project\nextjs-firebase-authentication\node_modules\apollo-link-http-comm
[0] at process._tickCallback (internal/process/next_tick.js:68:7)
[0] name: 'ServerParseError',
[0] response:
[0] Response {
[0] size: 0,
[0] timeout: 0,
[0] [Symbol(Body internals)]: { body: [PassThrough], disturbed: true, error: null },
[0] [Symbol(Response internals)]:
[0] { url: 'http://localhost:3000/api/graphql',
[0] status: 500,
[0] statusText: 'Internal Server Error',
[0] headers: [Headers],
[0] counter: 0 } },
[0] statusCode: 500,
[0] bodyText: 'Internal Server Error' }