nuxt / vite

⚡ Vite Experience with Nuxt 2

Home Page:https://vite.nuxtjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

support jsx in js function

Binaryify opened this issue · comments

Versions

nuxt-vite: 0.1.3
nuxt: 2.15.8

Reproduction

use jsx in .vue file, will show "error: Unexpected "<""

const someConfig = [
    {
      title: 'Start time',
      align: 'right',
      key: 'startTime',
      render(h){
        return <span>2021-01-01</span>;
        
      }
    },
  ];

Description

some UI libary like iView using jsx in their table components, but nuxt-vite seem like don't support use jsx in js function

小哥,你搞定了么?

Have you set <script lang="jsx">? Can you provide a minimal reproduction? Thanks

seem like this problem already fixed now