Skip to content
New issue

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

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

Already on GitHub? # 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
@github-project-automation github-project-automation bot moved this to 🆕 Backlog in Headless OSS Feb 29, 2024
@blakewilson blakewilson added the type: bug Issue that causes incorrect or unexpected behavior label Feb 29, 2024
@ChrisWiegman ChrisWiegman moved this from 🆕 Backlog to 🔖 Ready for Development in Headless OSS Mar 12, 2024
@TeresaGobble TeresaGobble moved this from 🔖 Ready for Development to 🏗 In progress in Headless OSS Mar 13, 2024
@TeresaGobble TeresaGobble moved this from 🏗 In progress to 🔖 Ready for Development in Headless OSS Mar 13, 2024
@TeresaGobble TeresaGobble self-assigned this Mar 14, 2024
@TeresaGobble TeresaGobble moved this from 🔖 Ready for Development to 🏗 In progress in Headless OSS Mar 14, 2024
@TeresaGobble TeresaGobble linked a pull request Mar 14, 2024 that will close this issue
3 tasks
@TeresaGobble TeresaGobble moved this from 🏗 In progress to 👀 In review in Headless OSS Mar 14, 2024
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Closed in Headless OSS Mar 15, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
type: bug Issue that causes incorrect or unexpected behavior
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants