Код: Выделить всё
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
TypeError: The URL must be of scheme file
❯ Object.fileURLToPath node:internal/url:1393:11
❯ src/_framework/dotnet.native.js:8:1475
❯ processTicksAndRejections node:internal/process/task_queues:95:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_URL_SCHEME' }
This error originated in "src/[...].test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
Код: Выделить всё
import { dotnet } from '_framework/dotnet.js';
...
setTimeout(async () => {
console.log('*** Initializing .NET');
try {
const { setModuleImports, getAssemblyExports, getConfig, runMain }
= await dotnet.withApplicationArguments('start').create();
...
Примечание. У меня есть блок catch, который должен был перехватывать любые исключения, но мой console.error не отображается. А код, вызывающий ошибку, минимизирован, поэтому я не могу его прочитать.
Подробнее здесь: https://stackoverflow.com/questions/798 ... mbly-in-no
Мобильная версия