luwanquan / babel-preset-vca-jsx

Automatically imports createElement as h when writing JSX and functional syntax that supports only setup() and template refs that supports setup()
https://codesandbox.io/s/babel-preset-vca-jsx-example-7k5xs
75 stars 8 forks source link

"export 'createElement' (imported as 'h') was not found in '@vue/composition-api' #15

Closed 542154968 closed 4 years ago

542154968 commented 4 years ago

"export 'createElement' (imported as 'h') was not found in '@vue/composition-api'

image

{
  "name": "composition-api-vue2",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build",
    "lint": "vue-cli-service lint"
  },
  "dependencies": {
    "@vue/composition-api": "^1.0.0-beta.3",
    "core-js": "^3.6.5",
    "vue": "^2.6.11",
    "vue-router": "^3.2.0",
    "vuex": "^3.4.0"
  },
  "devDependencies": {
    "@vue/cli-plugin-babel": "~4.4.0",
    "@vue/cli-plugin-eslint": "~4.4.0",
    "@vue/cli-plugin-router": "~4.4.0",
    "@vue/cli-plugin-vuex": "~4.4.0",
    "@vue/cli-service": "~4.4.0",
    "@vue/eslint-config-prettier": "^6.0.0",
    "babel-eslint": "^10.1.0",
    "babel-preset-vca-jsx": "^0.3.5",
    "eslint": "^6.7.2",
    "eslint-plugin-prettier": "^3.1.3",
    "eslint-plugin-vue": "^6.2.2",
    "node-sass": "^4.12.0",
    "prettier": "^1.19.1",
    "sass-loader": "^8.0.2",
    "vue-template-compiler": "^2.6.11"
  }
}
zhongqf commented 4 years ago

12

542154968 commented 4 years ago

12

不行 image

joaomede commented 4 years ago

this fix:

"babel-preset-vca-jsx": "b12f/babel-preset-vca-jsx#patch-1",
luwanquan commented 4 years ago

Fixed, see v0.3.6