VisActor / VisActor/VTable

[Bug] 在nuxt3下使用开发环境没问题,生产环境出现500

Open
#2,978 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
3.7k
Forks
486
Avg merge
1d 19h
Merged PRs (30d)
16

Description

Version

1.11.5

Link to Minimal Reproduction

https://github.com/pooooood/tableTest

Steps to Reproduce

npx nuxi@latest init test
cd test
npm install @visactor/vue-vtable

修改app.vue




新建pages/index.vue




<script setup> import { ListTable } from '@visactor/vue-vtable' import { ref } from 'vue' const tableOptions = ref({ header: [ { field: '0', caption: '名称' }, { field: '1', caption: '年龄' }, { field: '2', caption: '性别' }, { field: '3', caption: '爱好' } ], records: new Array(1000).fill(['张三', 18, '男', '🏀']) }) </script> <style> .table { width: 1000px; height: 600px; margin: 200px auto; } </style>
Current Behavior

npm run dev 使用完全没有问题
npm run build 使用有问题打开直接500
QQ20241201-145218

Expected Behavior

npm run build 使用没有问题

Environment
- OS:
- Browser:
- Framework:
Any additional comments?

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the minimal reproduction and the Nuxt entry points shown in app.vue and pages/index.vue, then compare npm run dev with npm run build for the @visactor/vue-vtable import. Capture the production 500 error and identify the failing build or runtime path; done means the provided reproduction builds and opens without a 500 error.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxtjs, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.