такой код
ERROR in ./src/parser.js 4:61
Module parse failed: Unexpected token (4:61)
File was processed with these loaders:
* ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| var data = new DOMParser();
| var parsData = data.parseFromString(resp, 'application/xml');
> return !parsData.querySelector('parsererror') ? parsData : throw new Error('this is not RSS');
| };
@ ./src/init.js 8:0-33 55:8-14
@ ./src/index.js 2:0-28 3:0-3
webpack 5.51.1 compiled with 1 error in 51391 ms
https://babeljs.io/docs/en/babel-plugin-proposal-throw-expressions врунец
это не ж return throw
Спасибо
Ничеси, век живи век учись
Обсуждают сегодня