opentiny / opentiny/tiny-engine
🐛 [Bug]: 导出和预览全部报错:SyntaxError: unknown: Unexpected token, expected "from", 已经测试多个版本
Nobody has claimed this yet.
- Dominant language
- Vue
- Stars
- 2.8k
- Forks
- 476
- Avg merge
- 17h 35m
- Merged PRs (30d)
- 1
Description
Environment
Chrome
Version
v20.18.3
Version
1.7.110.8.2
Link to minimal reproduction
使用Git测试了多个版本, 都会报错. 后端使用的java服务器.
出码后生成的代码导包的时候采用的语法是
import ButtonGroup as TinyButtonGroup from "@opentiny/vue"
应当为
import { ButtonGroup as TinyButtonGroup } from "@opentiny/vue"
是我用的分支不对吗?最新版后端和前端代码分别应该用哪个分支
Step to reproduce
使用Git测试了多个版本, 都会报错. 后端使用的java服务器.
出码后生成的代码导包的时候采用的语法是
import ButtonGroup as TinyButtonGroup from "@opentiny/vue"
应当为
import { ButtonGroup as TinyButtonGroup } from "@opentiny/vue"
是我用的分支不对吗?最新版后端和前端代码分别应该用哪个分支
What is expected
No response
What is actually happening
No response
What is your project name
ggc-admin
Any additional comments (optional)
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files or tests are named. Start by reproducing export and preview in Chrome with the reported versions, then inspect the generated @opentiny/vue import and verify which frontend and Java backend branches are paired. Done means both flows complete without SyntaxError and the generated imports parse correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, javascript
- Domain
- backend, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100