Strapi Version :
4.16.0
Operating System :
Chrome OS
Database :
better-sqlite3
Node Version :
v20.10.0
NPM Version :
10.2.3
I am creating a blog with strapi and astro. I just wanted to use graphql for my project. After I installed graphql to my strapi directory and when try to do “npm run develop” it gives me an error. The error is given below.
“Error: Cannot use GraphQLScalarType “Time” from another module or realm.”
Please help me to solve this problem. I tried below things,
Checking duplicate dependencies.
Remove node modules and npm install.
Remove package.json graphql and adding again.
Adding resources in the package.json.
Clear npm cache.
Any of these didn’t solve this error.
Just tested GraphQl Plugin from the market store and it worked.
I installed it via
yarn add @strapi/plugin-graphql
restarted Strapi app. When navigate to http://localhost:1337/graphql
I get the following screen.
@Nomishka look at this issue
opened 04:28AM - 21 Dec 23 UTC
closed 01:28PM - 21 Dec 23 UTC
flag: invalid template
I am using the @strapi/plugin-graphql extension in my Strapi 4.16.0 project. Whe… n using the version 15.8.0 of graphql installed directly in the root of the project, I get the following error:
Error: Cannot use GraphQLScalarType "Time" from another module or realm.
When uninstalling the @strapi/plugin-graphql extension, the problem is solved.
Request:
Could you please verify if version 15.8.0 of graphql is compatible with the @strapi/plugin-graphql extension? If it is not compatible, could you provide a compatible version?
Additional information:
My development environment is Node.js 20.9.0 and npm 8.13.0.
I have updated the resolution graphql": "16.8.1" in my package.json file, but the problem persists.
My Strapi version is 4.16.0.
Thank you for your attention.
Sincerely,
Christian Santana
1 Like
Thank you for sharing the link.
1 Like