sereinmc / serein Goto Github PK
View Code? Open in Web Editor NEWA Minecraft Bedrock ScriptAPI creation manage tool.
Home Page: https://sereinmc.github.io/Docs
License: MIT License
A Minecraft Bedrock ScriptAPI creation manage tool.
Home Page: https://sereinmc.github.io/Docs
License: MIT License
很显然 index.js
的一些代码并没有充分体现闭包与复用的**,是否能修改他们?
网站 serein.shannon.science
不可用,这导致需要从这个网站获取信息的操作,比如初始化项目,没有办法完成。
Considering reopen @shannon-github-bot
PS B:\mc\2024.2\Only Solution> serein build
(node:5252) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
[17:13:03] Using gulpfile B:\mc\2024.2\Only Solution\gulpfile.js
[17:13:03] Starting 'build'...
[17:13:03] Starting '<anonymous>'...
[17:13:03] Finished '<anonymous>' after 33 ms
[17:13:03] Starting 'copy_behavior_packs'...
[17:13:03] Starting 'copy_resource_packs'...
[17:13:03] Finished 'copy_behavior_packs' after 109 ms
[17:13:03] Finished 'copy_resource_packs' after 144 ms
[17:13:03] Starting 'compile_scripts'...
[17:13:04] Finished 'compile_scripts' after 1.22 s
[17:13:04] Starting 'esbuild_system'...
[17:13:04] 'esbuild_system' errored after 3.89 ms
[17:13:04] Error: File not found with singular glob: B:/mc/2024.2/Only Solution/build\scripts\main.js (if this was purposeful, use `allowEmpty` option)
at Glob.<anonymous> (B:\mc\2024.2\Only Solution\node_modules\glob-stream\readable.js:84:17)
at Object.onceWrapper (node:events:633:26)
at Glob.emit (node:events:518:28)
at Glob.emit (node:domain:488:12)
at Glob._finish (B:\mc\2024.2\Only Solution\node_modules\glob\glob.js:194:8)
at done (B:\mc\2024.2\Only Solution\node_modules\glob\glob.js:179:14)
at Glob._processSimple2 (B:\mc\2024.2\Only Solution\node_modules\glob\glob.js:688:12)
at B:\mc\2024.2\Only Solution\node_modules\glob\glob.js:676:10
at Glob._stat2 (B:\mc\2024.2\Only Solution\node_modules\glob\glob.js:772:12)
at lstatcb_ (B:\mc\2024.2\Only Solution\node_modules\glob\glob.js:764:12)
[17:13:04] 'build' errored after 1.41 s
node:internal/errors:932
const err = new Error(message);
^
Error: Command failed: gulp build
at checkExecSyncError (node:child_process:890:11)
at execSync (node:child_process:962:15)
at Object.exec (file:///C:/Users/ts187/AppData/Roaming/npm/node_modules/@pureeval/serein/src/base/io.js:33:16)
at Command.<anonymous> (file:///C:/Users/ts187/AppData/Roaming/npm/node_modules/@pureeval/serein/src/executer/cli.js:46:19)
at Command.listener [as _actionHandler] (C:\Users\ts187\AppData\Roaming\npm\node_modules\@pureeval\serein\node_modules\.store\[email protected]\node_modules\commander\lib\command.js:494:17)
at C:\Users\ts187\AppData\Roaming\npm\node_modules\@pureeval\serein\node_modules\.store\[email protected]\node_modules\commander\lib\commandb\command.js:1296:65
at Command._chainOrCall (C:\Users\ts187\AppData\Roaming\npm\node_modules\@pureeval\serein\node_modules\.store\[email protected]\node_modules\commander\lib\command.js:1193:12)
at Command._parseCommand (C:\Users\ts187\AppData\Roaming\npm\node_modules\@pureeval\serein\node_modules\.store\[email protected]\node_modules\commander\lib\command.js:1296:27)
at C:\Users\ts187\AppData\Roaming\npm\node_modules\@pureeval\serein\node_modules\.store\[email protected]\node_modules\commander\lib\command.js:1082:27 {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 20756,
stdout: null,
stderr: null
}
Node.js v20.11.1
>> serein build
SyntaxError: Unexpected identifier
at ESMLoader.moduleStrategy (node:internal/modules/esm/translators:139:18)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:236:14)
at async link (node:internal/modules/esm/module_job:67:21)
node:child_process:826
err = new Error(msg);
^
Error: Command failed: gulp build
at checkExecSyncError (node:child_process:826:11)
at execSync (node:child_process:900:15)
at Object.exec (file:///C:/Users/ts187/AppData/Roaming/npm/node_modules/@pureeval/serein/src/base/io.js:33:16)
at Command.<anonymous> (file:///C:/Users/ts187/AppData/Roaming/npm/node_modules/@pureeval/serein/src/executer/cli.js:46:19)
at Command.listener [as _actionHandler] (C:\Users\ts187\AppData\Roaming\npm\node_modules\@pureeval\serein\node_modules\.store\[email protected]\node_modules\commander\lib\command.js:494:17)
at C:\Users\ts187\AppData\Roaming\npm\node_modules\@pureeval\serein\node_modules\.store\[email protected]\node_modules\commander\lib\command.js:1296:65
at Command._chainOrCall (C:\Users\ts187\AppData\Roaming\npm\node_modules\@pureeval\serein\node_modules\.store\[email protected]\node_modules\commander\lib\command.js:1193:12)
at Command._parseCommand (C:\Users\ts187\AppData\Roaming\npm\node_modules\@pureeval\serein\node_modules\.store\[email protected]\node_modules\commander\lib\command.js:1296:27)
at C:\Users\ts187\AppData\Roaming\npm\node_modules\@pureeval\serein\node_modules\.store\[email protected]\node_modules\commander\lib\command.js:1082:27
at Command._chainOrCall (C:\Users\ts187\AppData\Roaming\npm\node_modules\@pureeval\serein\node_modules\.store\[email protected]\node_modules\commander\lib\command.js:1193:12) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 11444,
stdout: null,
stderr: null
}
安装的.d.ts的版本是stable,但是manifest.json中是beta
需要修改模板里的package.json中依赖项@minecraft/server模块的版本
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.