Troubleshooting
Read this category if you have any issues with the framework or the CLI.
PSSecurityException on install
When using the CLI, your console displays an error of type PSSecurityException. (picture attached)
Fix PSSecurityException
Open your PowerShell as administrator and simply enter the following command.
SyntaxError: Cannot use import outside a module
When you launch the bot after an update from a version older than the "Arliming" release, you may need to update the package.json file. This problem is due to a conversion of the module system of bot.ts (from CommonJS to ESModule).
Fix SyntaxError: Cannot use import outside a module
Just add the "type": "module",
entry to the package.json file!
ERR_MODULE_NOT_FOUND on launch
When you launch the bot after an update from a version older than the "Arliming" release, some imports may be obsolete. This problem is due to a conversion of the module system of bot.ts (from CommonJS to ESModule).
Fix ERR_MODULE_NOT_FOUND
Go to the file at this location:
src/app.js
(The second path underlined in red)Search for the module import
src/app.native
(The first path underlined in red)Add
.js
at the end of the import path.
Tip for Jetbrains IDEs
Press
ctrl
+shift
+R
to open the replacement-tool.Switch to regex mode.
Use the following regex and click on "Replace all".
Last updated