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

Faust doesn't support Faust template multiple queries in TypeScript #1825

Closed
1 task done
blakewilson opened this issue Feb 29, 2024 · 0 comments · Fixed by #1847
Closed
1 task done

Faust doesn't support Faust template multiple queries in TypeScript #1825

blakewilson opened this issue Feb 29, 2024 · 0 comments · Fixed by #1847
Assignees
Labels
type: bug Issue that causes incorrect or unexpected behavior

Comments

@blakewilson
Copy link
Contributor

Description

Faust Templates do not recognize the 'Component.queries` portion when in TypeScript.

Steps to reproduce

  1. Clone the faust-scaffold-ts
  2. Create the env.local with your WordPress sites proper url and secret key
  3. Update dependencies to latest: 'npx npm-check-updates -u' (this will update dependencies in package.json to their latest version)
  4. Install deps npm install
  5. Run the app in dev mode npm run dev
  6. In wp-templates/single.tsx, add:
    Component.queries = []
  7. Notice the error "Property 'queries' does not exist on type 'FaustTemplate'

Additional context

No response

@faustwp/core Version

2.1.2

@faustwp/cli Version

2.0.0

FaustWP Plugin Version

1.2.1

WordPress Version

6.4.3

Additional environment details

No response

Please confirm that you have searched existing issues in the repo.

  • Yes
@blakewilson blakewilson added the type: bug Issue that causes incorrect or unexpected behavior label Feb 29, 2024
@TeresaGobble TeresaGobble self-assigned this Mar 14, 2024
@TeresaGobble TeresaGobble linked a pull request Mar 14, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Issue that causes incorrect or unexpected behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants