dumi icon indicating copy to clipboard operation
dumi copied to clipboard

bug: alias 在 Live demo 中不生效

Open sakura-flutter opened this issue 1 year ago • 0 comments

Version

2.3.7

OS Version

window 11

Node.js Version

18.12.0

Browser Version

Chrome 125

Link to minimal reproduction

https://codesandbox.io/p/devbox/zv29g5?migrateFrom=xz2w39

Steps to reproduce

markdown 中 import DemoBlock from '@/demoblock' 这种引入方式在页面编辑代码时可以正常实时预览, 但是换成 import DemoBlock from 'demoblock' 后只可以预览,当修改代码时预览会出现以下错误:

image

已在 .dumirc.ts 中配置了 alias

What is expected?

在页面上编辑代码应该也是可以实时预览

What is actually happening?

Live demo 没有识别到 alias?

Any additional comments? (optional)

No response

sakura-flutter avatar Jun 04 '24 14:06 sakura-flutter