opentiny / opentiny/tiny-editor

🐛 [Bug]: UMi 3.x项目安装该插件页面报错

Open
#299 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
535
Forks
71
Avg merge
6h 50m
Merged PRs (30d)
2

Description

Version

页面报错

Link to minimal reproduction

/root/workspace/3.1.0-dev/4.0.0-dev/cmp-ui/node_modules/@opentiny/fluent-editor/node_modules/quill/themes/bubble.js 13:18
Module parse failed: Unexpected token (13:18)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| }, 'blockquote']];
| class BubbleTooltip extends BaseTooltip {

static TEMPLATE = ['', '

', '', '', ''].join('');
| constructor(quill, bounds) {
| super(quill, bounds);
页面报错

Step to reproduce

/root/workspace/3.1.0-dev/4.0.0-dev/cmp-ui/node_modules/@opentiny/fluent-editor/node_modules/quill/themes/bubble.js 13:18
Module parse failed: Unexpected token (13:18)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| }, 'blockquote']];
| class BubbleTooltip extends BaseTooltip {

static TEMPLATE = ['', '

', '', '', ''].join('');
| constructor(quill, bounds) {
| super(quill, bounds);
页面报错

What is expected

No response

What is actually happening

No response

What is your project name

wade

Any additional comments (optional)

/root/workspace/3.1.0-dev/4.0.0-dev/cmp-ui/node_modules/@opentiny/fluent-editor/node_modules/quill/themes/bubble.js 13:18
Module parse failed: Unexpected token (13:18)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| }, 'blockquote']];
| class BubbleTooltip extends BaseTooltip {

static TEMPLATE = ['', '

', '', '', ''].join('');
| constructor(quill, bounds) {
| super(quill, bounds);
页面报错

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

Reproduce the installation failure using the reported path under @opentiny/fluent-editor/node_modules/quill/themes/bubble.js and the UMi project setup. Start by tracing how the UMi/Webpack build processes this dependency and the reported static class field syntax. Done means the plugin installs and the page builds without the module parse error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, webpack
Domain
build-system, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.