Skip to content

无法解析配置文件 #1288

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

Closed
sodexx7 opened this issue Feb 7, 2025 · 0 comments
Closed

无法解析配置文件 #1288

sodexx7 opened this issue Feb 7, 2025 · 0 comments
Labels
dependencies Pull requests that update a dependency file

Comments

@sodexx7
Copy link

sodexx7 commented Feb 7, 2025

本地运行, 报错无法解析配置文件:everyone-can-use-english/enjoy/forge.config.js. 如下

···
✅ Dict cam_dict.refined.sqlite already exists
✅ Dict cam_dict.refined.sqlite valid
✔ Checking your system
✔ Locating application
✖ Loading configuration
  ›
    1. Unexpected identifier 'assert'
    2. Unexpected identifier 'assert'
◼ Preparing native dependencies
◼ Running generateAssets hook
◼ Running preStart hook
···

修改如下,运行成功. 本地环境使用node最新版本。

// import pkg from "./package.json" assert { type: "json" };
import pkg from "./package.json" with { "type": "json" }
@an-lee an-lee added the dependencies Pull requests that update a dependency file label Feb 13, 2025
an-lee added a commit that referenced this issue Feb 25, 2025
@an-lee an-lee closed this as completed in f3b3902 Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

2 participants