After downloading the contentful plugin and setting it up for my gatsby site, I try running "npm run develop" but when I run it the following error appears:
Encountered an error parsing the provided GraphQL type definitions:
Syntax Error: Unexpected Name "implements"
They show that the error is in this code:
interface ContentfulEntry implements Node {
contentful_id: String!
id: ID!
node_locale: String!
}
However, I can't find the file which has this code nor have I written it.
I just had the same issue. I've changed "gatsby-source-contentful" version from 5.1.1 to 4.6.3 and it worked...
Which version of Gatsby you are using? Gatsby-source-contentful 5 seems to require Gatsby 3. I got a warning in that regard before the error.
I guess this has to do with Graphql version differences. See this: https://www.gatsbyjs.com/docs/reference/release-notes/v3.0/#graphql-15
Related
I have the following error message in my browser upon using sveltekit and the command "npm run preview":
Uncaught TypeError: Error resolving module specifier “.prisma/client/index-browser”. Relative module specifiers must start with “./”, “../” or “/”.
It references a piece of code that was compiled with "npm run build" in localhost:3000/_app/start-b07b1607.js:
...s-d1fb5791.js";import".prisma/client/index-browser";let Be="",et="";function ...
I have tried reproducing this error with using older versions of Prisma, the adaptor and Svelte, switching from pnpm to npm, but nothing helps. I have a MWE repository that comes close to reproducing the error but doesn't actually reproduce it at https://github.com/wvhulle/prisma-sveltekit-bug-report.
How come the Svelte compiler emits “.prisma/client/index-browser” as a module specifier? Is this an error in Prisma, Vite or something else? The dev mode works without problem.
The question seems to be related, but is about Vue, not about Svelte.
Thanks!
Removing the import of a Prisma enum type fixed the issue.
Somewhere in my code I had import an enum type. This seems to be apparently a Prisma problem.
So, remove any import { Enum } from '#prisma/client'; from your code.
See https://github.com/prisma/prisma/issues/12504
I am trying to get application version in my react native app.
To get app version, I have written following code.
import { version } from './package.json';
console.log(version.appVersion);
But, It's throwing error like following
[eslint] Unable to resolve path to module './package.json'. [import/no-unresolved]
Any suggestions?
I have fixed is some syntax error in package.json
Package.json data just check with https://jsonlint.com/ website wether it is valid json data or not.
I my case, There is one } symbol missed. So, Fixed. it.
In Angular6, I have an error Please add a #Pipe/#Directive/#Component annotation
I used angular CLI version: 6.1.4
angular version:6.1.3
Node:10.9.0
NPM: 6.2.0
When I run ng serve in Terminal its compiled but in browser localhost:4200 try its shown error.
error display in Below error.
Output
enter image description here
in my case I had a custom module being Declared in the AppModule. This was unnecessary as the app-routing was handling the custom modules. Just remove the declaration and it worked. hope this helps someone
I am seeing an error when I start to run my node application.
Error says "ERROR in Metadata version mismatch for module ../node_modules/#ng-bootstrap/ng-bootstrap/index.d.ts, found version 4, expected 3"
Full error trace is:
ERROR in Metadata version mismatch for module
D:/MyProj/Client/node_modules/#ng-bootstrap/ng-bootstrap/index.d.ts,
found version 4, expected 3, resolving symbol AppModule in
D:/MyProj/Client/src/app/app.module.ts, resolving symbol AppModule in
D:/MyProj/Client/src/app/app.module.ts, resolving symbol AppModule in
D:/MyProj/Client/src/app/app.module.ts webpack: Failed to compile.
I got the same error
Probably in your package.json you have the following:
"#ng-bootstrap/ng-bootstrap": "^<VERSION_HERE>"
The problem is with the dependecies versions, so you can just update everthing to the last version, there is a topic in stackoverflow already: Metadata version mismatch with Angular 4
Or in my case that I couldn't just update all packages,I did the following:
I removed the package, also removed the ^ signal before the version number and then ran npm i again.
After this the app worked properly.
Pulled latest commit from master branch.
Ran following commands referring the official contribution guide
npm install
tsc --noImplicitAny .\mongoose\mongoose-tests.ts
But this is giving numerous errors like
error TS1005: ';' expected.
error TS1006: Identifier expected; 'this' is a keyword.
error TS1008: Unexpected token; 'module, class, interface, enum, import or statement' expected.
error TS1003: Identifier expected.
error TS1005: '=>' expected.
Similar errors are also displayed while running tests for youtube package definition.
What am I doing wrong?
You most likely have a typescript version that isn't the latest stable release.