You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having issue to run it locally. Getting error while executing npm run start. After cloning the repo executed npm install and npm run audit --force. The site is published on netlify but is unable to run on the local system.
Can you help since I am new to Gatsby and React.
npm version: 9.5.0
Gatsby CLI version: 5.7.0
Gatsby version: 5.7.0
Note: this is the Gatsby version for the site at: /Users/gatsby-starter-lumen-master
Error:
> [email protected] start
> npm run clean && gatsby develop
> [email protected] clean
> rimraf .cache public
success compile gatsby files - 1.906s
success load gatsby config - 0.059s
success load plugins - 3.033s
success onPreInit - 0.010s
success initialize cache - 0.181s
success copy gatsby files - 0.322s
success Compiling Gatsby Functions - 0.421s
success onPreBootstrap - 0.463s
success createSchemaCustomization - 0.023s
success Checking for changed pages - 0.001s
success source and transform nodes - 0.481s
success building schema - 0.505s
warn Deprecated syntax of sort and/or aggregation field arguments were found in your query (see
https://gatsby.dev/graphql-nested-sort-and-aggregate). Query was automatically converted to a new syntax. You should update query
in your code.
Current query:
{
allMarkdownRemark(
filter: {
frontmatter: { template: { eq: "post" }, draft: { ne: true } }
}
sort: { order: DESC, fields: [frontmatter___date] }
) {
group(field: frontmatter___category) {
fieldValue
totalCount
}
}
}
Converted query:
{
allMarkdownRemark(
filter: {frontmatter: {template: {eq: "post"}, draft: {ne: true}}}
sort: {frontmatter: {date: DESC}}
) {
group(field: {frontmatter: {category: SELECT}}) {
fieldValue
totalCount
}
}
}
warn Deprecated syntax of sort and/or aggregation field arguments were found in your query (see
https://gatsby.dev/graphql-nested-sort-and-aggregate). Query was automatically converted to a new syntax. You should update query
in your code.
Current query:
{
allMarkdownRemark(
filter: {
frontmatter: { template: { eq: "post" }, draft: { ne: true } }
}
) {
group(field: frontmatter___tags) {
fieldValue
totalCount
}
}
}
Converted query:
{
allMarkdownRemark(
filter: {frontmatter: {template: {eq: "post"}, draft: {ne: true}}}
) {
group(field: {frontmatter: {tags: SELECT}}) {
fieldValue
totalCount
}
}
}
success createPages - 0.174s
success createPagesStatefully - 0.163s
info Total nodes: 135, SitePage nodes: 27 (use --verbose for breakdown)
success Checking for changed pages - 0.001s
success write out redirect data - 0.004s
success Build manifest and related icons - 0.196s
success onPostBootstrap - 0.202s
info bootstrap finished - 11.239s
success onPreExtractQueries - 0.003s
warn Deprecated syntax of sort and/or aggregation field arguments were found in your query (see
https://gatsby.dev/graphql-nested-sort-and-aggregate). Query was automatically converted to a new syntax. You should update query
in your code.
File: /Users/gatsby-starter-lumen-master/src/hooks/use-categories-list.ts
Current query:
query CategoriesListQuery {
allMarkdownRemark(
filter: {frontmatter: {template: {eq: "post"}, draft: {ne: true}}}
) {
group(field: frontmatter___category) {
fieldValue
totalCount
}
}
}
Converted query:
query CategoriesListQuery {
allMarkdownRemark(
filter: {frontmatter: {template: {eq: "post"}, draft: {ne: true}}}
) {
group(field: {frontmatter: {category: SELECT}}) {
fieldValue
totalCount
}
}
}
warn Deprecated syntax of sort and/or aggregation field arguments were found in your query (see
https://gatsby.dev/graphql-nested-sort-and-aggregate). Query was automatically converted to a new syntax. You should update query
in your code.
File: /Users/gatsby-starter-lumen-master/src/hooks/use-tags-list.ts
Current query:
query TagsListQuery {
allMarkdownRemark(
filter: {frontmatter: {template: {eq: "post"}, draft: {ne: true}}}
) {
group(field: frontmatter___tags) {
fieldValue
totalCount
}
}
}
Converted query:
query TagsListQuery {
allMarkdownRemark(
filter: {frontmatter: {template: {eq: "post"}, draft: {ne: true}}}
) {
group(field: {frontmatter: {tags: SELECT}}) {
fieldValue
totalCount
}
}
}
warn Deprecated syntax of sort and/or aggregation field arguments were found in your query (see
https://gatsby.dev/graphql-nested-sort-and-aggregate). Query was automatically converted to a new syntax. You should update query
in your code.
File: /Users/gatsby-starter-lumen-master/src/templates/CategoryTemplate/CategoryTemplate.tsx
Current query:
query CategoryTemplate($group: String, $limit: Int!, $offset: Int!) {
allMarkdownRemark(
limit: $limit
skip: $offset
filter: {frontmatter: {category: {eq: $group}, template: {eq: "post"}, draft: {ne: true}}}
sort: {order: DESC, fields: [frontmatter___date]}
) {
edges {
node {
fields {
slug
categorySlug
}
frontmatter {
description
category
title
date
slug
}
}
}
}
}
Converted query:
query CategoryTemplate($group: String, $limit: Int!, $offset: Int!) {
allMarkdownRemark(
limit: $limit
skip: $offset
filter: {frontmatter: {category: {eq: $group}, template: {eq: "post"}, draft: {ne: true}}}
sort: {frontmatter: {date: DESC}}
) {
edges {
node {
fields {
slug
categorySlug
}
frontmatter {
description
category
title
date
slug
}
}
}
}
}
warn Deprecated syntax of sort and/or aggregation field arguments were found in your query (see
https://gatsby.dev/graphql-nested-sort-and-aggregate). Query was automatically converted to a new syntax. You should update query
in your code.
File: /Users/gatsby-starter-lumen-master/src/templates/IndexTemplate/IndexTemplate.tsx
Current query:
query IndexTemplate($limit: Int!, $offset: Int!) {
allMarkdownRemark(
limit: $limit
skip: $offset
sort: {order: DESC, fields: [frontmatter___date]}
filter: {frontmatter: {template: {eq: "post"}, draft: {ne: true}}}
) {
edges {
node {
fields {
categorySlug
slug
}
frontmatter {
description
category
title
date
slug
}
}
}
}
}
Converted query:
query IndexTemplate($limit: Int!, $offset: Int!) {
allMarkdownRemark(
limit: $limit
skip: $offset
sort: {frontmatter: {date: DESC}}
filter: {frontmatter: {template: {eq: "post"}, draft: {ne: true}}}
) {
edges {
node {
fields {
categorySlug
slug
}
frontmatter {
description
category
title
date
slug
}
}
}
}
}
warn Deprecated syntax of sort and/or aggregation field arguments were found in your query (see
https://gatsby.dev/graphql-nested-sort-and-aggregate). Query was automatically converted to a new syntax. You should update query
in your code.
File: /Users/gatsby-starter-lumen-master/src/templates/TagTemplate/TagTemplate.tsx
Current query:
query TagTemplate($group: String, $limit: Int!, $offset: Int!) {
site {
siteMetadata {
title
subtitle
}
}
allMarkdownRemark(
limit: $limit
skip: $offset
filter: {frontmatter: {tags: {in: [$group]}, template: {eq: "post"}, draft: {ne: true}}}
sort: {order: DESC, fields: [frontmatter___date]}
) {
edges {
node {
fields {
slug
categorySlug
}
frontmatter {
title
date
category
description
slug
}
}
}
}
}
Converted query:
query TagTemplate($group: String, $limit: Int!, $offset: Int!) {
site {
siteMetadata {
title
subtitle
}
}
allMarkdownRemark(
limit: $limit
skip: $offset
filter: {frontmatter: {tags: {in: [$group]}, template: {eq: "post"}, draft: {ne: true}}}
sort: {frontmatter: {date: DESC}}
) {
edges {
node {
fields {
slug
categorySlug
}
frontmatter {
title
date
category
description
slug
}
}
}
}
}
success extract queries from components - 2.813s
success write out requires - 0.018s
success Running gatsby-plugin-sharp.IMAGE_PROCESSING jobs - 0.263s - 30/30 114.25/s
warn `isModuleDeclaration` has been deprecated, please migrate to `isImportOrExportDeclaration`
at isModuleDeclaration (/Users/gatsby-starter-lumen-master/node_modules/@babel/types/lib/valida
tors/generated/index.js:3940:35)
at PluginPass.Program
(/Users/gatsby-starter-lumen-master/node_modules/babel-plugin-lodash/lib/index.js:102:44)
ERROR UNKNOWN
Module not found: Error: Can't resolve 'gatsby-react-router-scroll' in
'/Users/gatsby-starter-lumen-master/.cache'
ModuleNotFoundError: Module not found: Error: Can't resolve 'gatsby-react-router-scroll' in '/Users/trushargavit/Documents/Gith
ub/gatsby-starter-lumen-master/.cache'
- Compilation.js:2016
[gatsby-starter-lumen-master]/[webpack]/lib/Compilation.js:2016:28
- NormalModuleFactory.js:798
[gatsby-starter-lumen-master]/[webpack]/lib/NormalModuleFactory.js:798:13
- NormalModuleFactory.js:270
[gatsby-starter-lumen-master]/[webpack]/lib/NormalModuleFactory.js:270:22
- NormalModuleFactory.js:434
[gatsby-starter-lumen-master]/[webpack]/lib/NormalModuleFactory.js:434:22
- NormalModuleFactory.js:116
[gatsby-starter-lumen-master]/[webpack]/lib/NormalModuleFactory.js:116:11
- NormalModuleFactory.js:670
[gatsby-starter-lumen-master]/[webpack]/lib/NormalModuleFactory.js:670:25
- NormalModuleFactory.js:855
[gatsby-starter-lumen-master]/[webpack]/lib/NormalModuleFactory.js:855:8
- NormalModuleFactory.js:975
[gatsby-starter-lumen-master]/[webpack]/lib/NormalModuleFactory.js:975:5
- async.js:6883
[gatsby-starter-lumen-master]/[neo-async]/async.js:6883:13
- NormalModuleFactory.js:958
[gatsby-starter-lumen-master]/[webpack]/lib/NormalModuleFactory.js:958:45
- Resolver.js:312 finishWithoutResolve
[gatsby-starter-lumen-master]/[enhanced-resolve]/lib/Resolver.js:312:11
- Resolver.js:386
[gatsby-starter-lumen-master]/[enhanced-resolve]/lib/Resolver.js:386:15
- Resolver.js:435
[gatsby-starter-lumen-master]/[enhanced-resolve]/lib/Resolver.js:435:5
- Resolver.js:435
[gatsby-starter-lumen-master]/[enhanced-resolve]/lib/Resolver.js:435:5
- DescriptionFilePlugin.js:87
[gatsby-starter-lumen-master]/[enhanced-resolve]/lib/DescriptionFilePlugin.js:87:43
- Resolver.js:435
[gatsby-starter-lumen-master]/[enhanced-resolve]/lib/Resolver.js:435:5
- Resolver.js:435
[gatsby-starter-lumen-master]/[enhanced-resolve]/lib/Resolver.js:435:5
- Resolver.js:435
[gatsby-starter-lumen-master]/[enhanced-resolve]/lib/Resolver.js:435:5
- Resolver.js:435
[gatsby-starter-lumen-master]/[enhanced-resolve]/lib/Resolver.js:435:5
- DescriptionFilePlugin.js:87
[gatsby-starter-lumen-master]/[enhanced-resolve]/lib/DescriptionFilePlugin.js:87:43
- Resolver.js:435
[gatsby-starter-lumen-master]/[enhanced-resolve]/lib/Resolver.js:435:5
- Resolver.js:435
[gatsby-starter-lumen-master]/[enhanced-resolve]/lib/Resolver.js:435:5
- DirectoryExistsPlugin.js:41
[gatsby-starter-lumen-master]/[enhanced-resolve]/lib/DirectoryExistsPlugin.js:41:15
- task_queues:81 processTicksAndRejections
node:internal/process/task_queues:81:21
ERROR UNKNOWN
Module not found: Error: Can't resolve 'gatsby-script' in
'/Users/gatsby-starter-lumen-master/.cache'
ModuleNotFoundError: Module not found: Error: Can't resolve 'gatsby-script' in '/Users/gatsby-sta
rter-lumen-master/.cache'
- Compilation.js:2016
[gatsby-starter-lumen-master]/[webpack]/lib/Compilation.js:2016:28
- NormalModuleFactory.js:798
[gatsby-starter-lumen-master]/[webpack]/lib/NormalModuleFactory.js:798:13
- NormalModuleFactory.js:270
[gatsby-starter-lumen-master]/[webpack]/lib/NormalModuleFactory.js:270:22
- NormalModuleFactory.js:434
[gatsby-starter-lumen-master]/[webpack]/lib/NormalModuleFactory.js:434:22
- NormalModuleFactory.js:116
[gatsby-starter-lumen-master]/[webpack]/lib/NormalModuleFactory.js:116:11
- NormalModuleFactory.js:670
[gatsby-starter-lumen-master]/[webpack]/lib/NormalModuleFactory.js:670:25
- NormalModuleFactory.js:855
[gatsby-starter-lumen-master]/[webpack]/lib/NormalModuleFactory.js:855:8
- NormalModuleFactory.js:975
[gatsby-starter-lumen-master]/[webpack]/lib/NormalModuleFactory.js:975:5
- async.js:6883
[gatsby-starter-lumen-master]/[neo-async]/async.js:6883:13
- NormalModuleFactory.js:958
[gatsby-starter-lumen-master]/[webpack]/lib/NormalModuleFactory.js:958:45
- Resolver.js:312 finishWithoutResolve
[gatsby-starter-lumen-master]/[enhanced-resolve]/lib/Resolver.js:312:11
- Resolver.js:386
[gatsby-starter-lumen-master]/[enhanced-resolve]/lib/Resolver.js:386:15
- Resolver.js:435
[gatsby-starter-lumen-master]/[enhanced-resolve]/lib/Resolver.js:435:5
- Resolver.js:435
[gatsby-starter-lumen-master]/[enhanced-resolve]/lib/Resolver.js:435:5
- DescriptionFilePlugin.js:87
[gatsby-starter-lumen-master]/[enhanced-resolve]/lib/DescriptionFilePlugin.js:87:43
- Resolver.js:435
[gatsby-starter-lumen-master]/[enhanced-resolve]/lib/Resolver.js:435:5
- Resolver.js:435
[gatsby-starter-lumen-master]/[enhanced-resolve]/lib/Resolver.js:435:5
- Resolver.js:435
[gatsby-starter-lumen-master]/[enhanced-resolve]/lib/Resolver.js:435:5
- Resolver.js:435
[gatsby-starter-lumen-master]/[enhanced-resolve]/lib/Resolver.js:435:5
- DescriptionFilePlugin.js:87
[gatsby-starter-lumen-master]/[enhanced-resolve]/lib/DescriptionFilePlugin.js:87:43
- Resolver.js:435
[gatsby-starter-lumen-master]/[enhanced-resolve]/lib/Resolver.js:435:5
- Resolver.js:435
[gatsby-starter-lumen-master]/[enhanced-resolve]/lib/Resolver.js:435:5
- DirectoryExistsPlugin.js:41
[gatsby-starter-lumen-master]/[enhanced-resolve]/lib/DirectoryExistsPlugin.js:41:15
- task_queues:81 processTicksAndRejections
node:internal/process/task_queues:81:21
not finished Building development bundle - 14.417s
The text was updated successfully, but these errors were encountered:
I am having issue to run it locally. Getting error while executing
npm run start
. After cloning the repo executednpm install
andnpm run audit --force
. The site is published on netlify but is unable to run on the local system.Can you help since I am new to Gatsby and React.
npm version: 9.5.0
Gatsby CLI version: 5.7.0
Gatsby version: 5.7.0
Note: this is the Gatsby version for the site at: /Users/gatsby-starter-lumen-master
Error:
The text was updated successfully, but these errors were encountered: