После обновления с parcel-bundler на parcel появилась ошибка Failed to resolve './assets/i18n/*.json' from './src/i18n.ts'

консоль

D:\s10.run\s10-frontend\src\i18n.ts:13:30
[1]     12 |
[1]   > 13 | const translations = require('./assets/i18n/*.json');
[1]   >    |                              ^^^^^^^^^^^^^^^^^^^^^^
[1]     14 | const defaultNS = 'translations';
[1]     15 |
[1] @parcel/resolver-default: Cannot load file './assets/i18n/*.json' in './src'.
[1] ℹ Did you mean './assets/i18n/en.json'?
[1] ℹ Did you mean './assets/i18n/lv.json'?

Ответы (0 шт):