Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build (and vercel deployment) fails: [slug].tsx:23:18 Type error: Property 'query' does not exist on type 'never'. #55

Open
tom-s07 opened this issue Dec 6, 2022 · 1 comment

Comments

@tom-s07
Copy link

tom-s07 commented Dec 6, 2022

$ yarn build
yarn run v1.22.19
$ yarn tinacms server:start -c "next build"
$ /workspaces/website/node_modules/.bin/tinacms server:start -c 'next build'

server:start will be deprecated in the future, please use `tinacms dev` instead
        Typescript types => /workspaces/website/.tina/__generated__/types.ts
        GraphQL types ====> /workspaces/website/.tina/__generated__/schema.gql

Indexing local files ⠋
Starting Tina asset server
Visit the GraphQL playground at http://localhost:4001/altair/
or
Enter the CMS at [your-development-url]/admin/index.html 

warn  - SWC minify release candidate enabled. https://nextjs.org/docs/messages/swc-minify-enabled
Browserslist: caniuse-lite is outdated. Please run:
  npx browserslist@latest --update-db
  Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
Failed to compile.

./pages/blog/[slug].tsx:23:18
Type error: Property 'query' does not exist on type 'never'.

  21 |   
  22 |   const { data } = useTina({
> 23 |     query: props.query,
     |                  ^
  24 |     variables: props.variables,
  25 |     data: props.data,
  26 |   });
info  - Checking validity of types .child process exited with code 1
error Command failed with exit code 1.
@tom-s07
Copy link
Author

tom-s07 commented Dec 6, 2022

yarn dev works, but yarn build fails with above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant