question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

i got this issue frequently in razzle js home/nirmal/Public/traversun-frontend/src/graphql/user.graphql.js:3 const DETAILED_USER = gql` ^

TypeError: apollo_client__WEBPACK_IMPORTED_MODULE_0_.gql is not a function

1 | import { gql } from “@apollo/client”; 2 |

3 | const DETAILED_USER = gql` 4 | fragment User on UserType { 5 | id 6 | username

at Module../src/graphql/user.graphql.js (/home/nirmal/Public/traversun-frontend/src/graphql/user.graphql.js:3:1)
at __webpack_require__ (/home/nirmal/Public/traversun-frontend/build/webpack:/webpack/bootstrap:748:1)
at fn (/home/nirmal/Public/traversun-frontend/build/webpack:/webpack/bootstrap:59:1)
at Module../src/components/useCurrentUser.js (/home/nirmal/Public/traversun-frontend/build/webpack:/src/components/useCurrentUser.js:1:1)
at __webpack_require__ (/home/nirmal/Public/traversun-frontend/build/webpack:/webpack/bootstrap:748:1)
at fn (/home/nirmal/Public/traversun-frontend/build/webpack:/webpack/bootstrap:59:1)
at Module../src/admin/components/sidebar.js (/home/nirmal/Public/traversun-frontend/build/server.js:1817:85)
at __webpack_require__ (/home/nirmal/Public/traversun-frontend/build/webpack:/webpack/bootstrap:748:1)
at fn (/home/nirmal/Public/traversun-frontend/build/webpack:/webpack/bootstrap:59:1)
at Module../src/admin/Admin.js (/home/nirmal/Public/traversun-frontend/build/server.js:1614:77)
Software Version(s)
Razzle
Razzle Plugins
Node
Browser
npm/Yarn
Operating System
TypeScript
React

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
fivethreeocommented, Feb 16, 2022

Released fix now

1reaction
thomasjmcommented, Feb 16, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Type I and type II errors - Wikipedia
The type I error rate is the probability of rejecting the null hypothesis given that it is true. · The rate of the...
Read more >
Type Errors - learn how to fix these - Codecademy
Type Errors : these show up when a value is not the expected type. In the sections below you will find the different...
Read more >
How to Fix TypeError Exceptions in Python - Rollbar
The Python TypeError is an exception that occurs when the data type of an object in an operation is inappropriate.
Read more >
ERROR.TYPE function - Microsoft Support
This article describes the formula syntax and usage of the ERROR.TYPE function in Microsoft Excel. Description. Returns a number corresponding to one of...
Read more >
Built-in Exceptions — Python 3.11.1 documentation
This can be used to test an exception handler or to report an error condition “just like” the situation ... A TypeError is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found