I need to use Vue jsx in my laravel project. How can this be acomplished?
I tried doing the following
Install babel plugins
npm install --save-dev
@babel/plugin-syntax-jsx
@vue/babel-plugin-transform-vue-jsx
@vue/babel-helper-vue-jsx-merge-props
.babelrc
{
"presets": [
"@babel/preset-env"
],
"plugins": [
"@babel/plugin-syntax-dynamic-import",
"@vue/babel-plugin-transform-vue-jsx"
]
}
It throws "ReferenceError: h is not defined"
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3dlDIDS
via IFTTT
Aucun commentaire:
Enregistrer un commentaire