samedi 21 mars 2020

Laravel vue jsx

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"



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire