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
The dynamic-import one is not related to this, and Laravel Mix has its own .babelrc file that mine is merged with (automatically).
The problem I am facing is that the docs for this plugin say:
Starting with version 3.4.0 we automatically inject const h = this.$createElement in any method and getter (not functions or arrow functions) declared in ES2015 syntax that has JSX so you can drop the (h) parameter.
Vue.component('jsx-example', {
render () { // h will be injected
return <divid="foo">bar</div>
},
})
But this is not the behaviour I see:
This is a problem because h is colliding with ES Lint's no-unused-vars rule:
I don't know what to do about that because I can't disable no-unused-vars across the entire project, and I don't want to add // eslint-disable-line no-unused-vars in every functional component.
I notice the docs say v3.4.0, but I am using this plugin as v1.0.0-beta.3 which is the one that is installed via npm install @vue/babel-plugin-transform-vue-jsx. I don't know if that will be related, but it is an observation.
The text was updated successfully, but these errors were encountered:
I am using Laravel and Vue, and to make JSX work, I use the following packages:
Then I use this
.babelrc
in my project root:The dynamic-import one is not related to this, and Laravel Mix has its own .babelrc file that mine is merged with (automatically).
The problem I am facing is that the docs for this plugin say:
But this is not the behaviour I see:
This is a problem because
h
is colliding with ES Lint'sno-unused-vars
rule:I don't know what to do about that because I can't disable
no-unused-vars
across the entire project, and I don't want to add// eslint-disable-line no-unused-vars
in every functional component.Thanks for your time,
Here are my versions:
I notice the docs say
v3.4.0
, but I am using this plugin asv1.0.0-beta.3
which is the one that is installed vianpm install @vue/babel-plugin-transform-vue-jsx
. I don't know if that will be related, but it is an observation.The text was updated successfully, but these errors were encountered: