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
Browser: Google Chrome Version 66.0.3359.117 (Official Build) (64-bit)
Local installation
Package Manager used: yarn
I'm using VuePress for documenting my components. For demo, purpose I'm registering it globally in enhanceApp.js and using it .md files.
Attaching a reproducible project with a custom component.
I have used yarn to install dependecies.
To reproduce:
Go to src/components/MyComponent.js.
Toggle the return statement to see the output.
To view docs: run yarn docs:dev
I guess the problem is that it VuePress doesn't have babel-plugin-transform-vue-jsx. So is this thing in roadmap, or will not be supported? Is there any other way to handle JSX in render function for VuePress
If I use createElement method directly with arguments, its rendering properly.
Hi @yyx990803,
Thanks for quick reply
Shouldn't this be documented? Somewhere stating the limitation or in ToDo list of VuePress docs.
I'll try to play around in my local setup with babel+VuePress, but is there any specific reason why it was not used?
Uh oh!
There was an error while loading. Please reload this page.
vuepress-error.zip
I'm using VuePress for documenting my components. For demo, purpose I'm registering it globally in
enhanceApp.js
and using it.md
files.Attaching a reproducible project with a custom component.
I have used
yarn
to install dependecies.To reproduce:
src/components/MyComponent.js
.return
statement to see the output.To view docs: run
yarn docs:dev
I guess the problem is that it
VuePress
doesn't havebabel-plugin-transform-vue-jsx
. So is this thing in roadmap, or will not be supported? Is there any other way to handle JSX in render function for VuePressIf I use
createElement
method directly with arguments, its rendering properly.Now in my
.md
files if I useIts working correctly.
But if I use
JSX
inrender
method, then it's showingReferenceError: React is not defined
in console.The text was updated successfully, but these errors were encountered: