Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 无法正常使用import语法 #98

Open
LAppleXGR358 opened this issue Apr 8, 2024 · 2 comments
Open

[Bug]: 无法正常使用import语法 #98

LAppleXGR358 opened this issue Apr 8, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@LAppleXGR358
Copy link

Describe the bug

在JavaScript插件中无法正常使用import语法,该用法在旧版LLSE中是完全可用的,导致很多插件无法在新版中使用

To Reproduce

BetterForms.js
export class BetterSimpleForm {}; export class BetterCustomForm {};

在LLMyPluginTest.js使用import语法导入模块
import { BetterSimpleForm, BetterCustomForm } from "./plugins/LLMyPlugins/BetterForms.js";

报错信息
18:32:11.206 INFO [legacy-script-engine-quickjs] loading plugin LLMyPluginTest
18:32:11.221 ERROR [legacy-script-engine-quickjs] Failed to load plugin LLMyPluginTest: expecting '(' at :1
18:32:11.221 ERROR [LeviLamina] LLMyPluginTest 加载失败

Expected behavior

插件正常运行无报错

Screenshots

No response

Platform

Windows 10

BDS Version

1.20.72

LeviLamina Version

0.10.5

LegacyScriptEngine Version

0.5.4

Additional context

No response

@LAppleXGR358 LAppleXGR358 added the bug Something isn't working label Apr 8, 2024
@engsr6982
Copy link
Contributor

qjs,正常情况是可以使用import语法

目前已知中文路径会导致import出问题

目前我的插件都正常,用中文路径的都有问题

@LAppleXGR358
Copy link
Author

确实是中文路径的问题,我的BDS安装在中文路径下了,修改后就能正常运行,但是旧版ll我也是安装在中文路径下来着,那时没有出问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants