fullcalendar / fullcalendar

Full-sized drag & drop event calendar in JavaScript
https://fullcalendar.io
MIT License
18.53k stars 3.61k forks source link

Vue 3 & TypeScript Example Project Build Error #7259

Open heaquan opened 1 year ago

heaquan commented 1 year ago

Reduced Test Case

https://github.com/fullcalendar/fullcalendar-examples/tree/main/vue3-typescript

Do you understand that if a reduced test case is not provided, we will intentionally delay triaging of your ticket?

Which connector are you using (React/Angular/etc)?

Vue

Bug Description

Use the example code in git,error while building。

The operation is as follows: git clone https://github.com/fullcalendar/fullcalendar-examples.git cd fullcalendar-examples/vue3-typescript npm install npm run build

error screenshot:

image

image

vgoreiko commented 1 year ago

According to this in the repository: https://github.com/fullcalendar/fullcalendar-examples/blob/main/vue3-typescript/package.json a lot of packages use ^ in the version determination. I think that this is the reason - some depth was updated and this influenced on build. Just as a temporary fix - try different versions of packages. Especially these: "devDependencies": { "@vitejs/plugin-vue": "^4.0.0", "typescript": "^4.9.3", "vite": "^4.0.0", "vue-tsc": "^1.0.11" },

acerix commented 1 year ago

I tried the same commands and it builds without error for me.

It could be a problem with using older typescript or node, updating those may help and also clearing the npm package cache.

Gilbert5210 commented 5 months ago

vite@4.5.0 + vue@3.4.21 + vue-tsc@2.0.12

run vite build image

@acerix help me?

Gilbert5210 commented 5 months ago

git clone https://github.com/fullcalendar/fullcalendar-examples.git cd fullcalendar-examples/vue3-typescript

add file test.vue

<script lang='tsx'>
import { defineComponent, ref } from 'vue'
import { Button } from 'ant-design-vue'

/**
 * @author 
 * @Description:
 * @date
 */
export default defineComponent({
  name: 'test',
  setup() {
    const count = ref('test')
    return () => <div class='test-wrap'>
      <Button>{count.value}</Button>
    </div>
  }
})
</script>

<style lang='less' scoped>
.test-wrap {

}
</style>

run: yarn build

look terminal image

@acerix

Gilbert5210 commented 4 months ago

@acerix

Gilbert5210 commented 2 months ago

@acerix ???

Gilbert5210 commented 1 month ago

@acerix are you ok ?