Здравствуйте, при попытке создать файл ru.json в папке locales (созданой при vue add i18n) я получаю ошибку в виде
warning in ./src/locales/ru.json
Module parse failed: Unexpected end of JSON input while parsing near ''
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
SyntaxError: Unexpected end of JSON input while parsing near ''
at JSON.parse (<anonymous>)
at parseJson (D:\Projects\temp_cli\node_modules\json-parse-better-errors\index.js:7:17)
at JsonParser.parse (D:\Projects\temp_cli\node_modules\webpack\lib\JsonParser.js:16:16)
at D:\Projects\temp_cli\node_modules\webpack\lib\NormalModule.js:482:32
at D:\Projects\temp_cli\node_modules\webpack\lib\NormalModule.js:358:12
at D:\Projects\temp_cli\node_modules\loader-runner\lib\LoaderRunner.js:373:3
at iterateNormalLoaders (D:\Projects\temp_cli\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
at Array.<anonymous> (D:\Projects\temp_cli\node_modules\loader-runner\lib\LoaderRunner.js:205:4)
at Storage.finished (D:\Projects\temp_cli\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:55:16)
at D:\Projects\temp_cli\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:91:9
at D:\Projects\temp_cli\node_modules\graceful-fs\graceful-fs.js:123:16
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:69:3)
@ ./src/locales sync [A-Za-z0-9-_,\s]+\.json$/
@ ./src/i18n.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://192.168.3.200:8080&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
Почему ето приисходит и как сделать файлы для других языков