Closed amaankulshreshtha closed 3 years ago
Hi @AmaanKulshreshtha. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.
Please, add a comment to assign the issue: @magento I am working on this
Is jsx
a valid template engine?
I installed express-react-views, and got the jsx
template engine from there
any updates on this?
Have you tried asking in the slack channel? You may find help there :)
I actually did, but no luck there as well...
The engine that its referring to I believe comes from https://github.com/magento/pwa-studio/blob/develop/packages/upward-js/lib/resolvers/TemplateResolver.js#L6, where mustache is the only resolve supported by upward out of the box
I am trying to add react
as a templating engine, by creating ReactTemplate.js
inside https://github.com/magento/pwa-studio/tree/develop/packages/upward-js/lib/compiledResources. Feel free to float any ideas regarding the implementation as well 😄
Closing as Stale
Is there a workaround to adding react as a templating engine?
In my
server.js
file, I have the following code:And in the spec file i have the following code
Yet I am facing
TemplateResolver
issueError: Template engine 'jsx' unsupported
Can you tell me what is it that I am missing here as well
PS: I already went through this part of the readme and it didn't help
Please let us know what packages this bug is in regards to:
venia-concept
venia-ui
pwa-buildpack
peregrine
pwa-devdocs
upward-js
upward-spec
create-pwa