opentiny / opentiny/tiny-engine

🐛 [Bug]: 导出和预览全部报错:SyntaxError: unknown: Unexpected token, expected "from", 已经测试多个版本

Open
#1,563 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.