You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use short bits of html for text formatting in Nuxt. However, the yaml-eslint-parser package that is used does not seem to allow that. It throws an error saying "Unexpected scalar token". I tried changing the formatting from yaml to json, but that does not seem to have any effect, since the yaml-eslint-parser seems to be used for both cases.
Expected behavior
Parsing the translation values regardless of its HTML content, when strictMessage is disabled.
Unexpected scalar token
at Context.throwError (<redacted>/node_modules/yaml-eslint-parser/lib/context.js:80:15)
at processDoc (<redacted>/node_modules/yaml-eslint-parser/lib/yaml-cst-parse.js:16:23)
at parseAllDocsToCST (<redacted>/node_modules/yaml-eslint-parser/lib/yaml-cst-parse.js:31:9)
at parseForESLint (<redacted>/node_modules/yaml-eslint-parser/lib/parser.js:13:57)
at parseYAML (<redacted>/node_modules/yaml-eslint-parser/lib/index.js:46:40)
at generate$1 (file://<redacted>/node_modules/@intlify/bundle-utils/lib/index.mjs:598:13)
at TransformContext.transform (file://<redacted>/node_modules/@intlify/unplugin-vue-i18n/lib/index.mjs:527:48)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file://<redacted>/node_modules/vite-plugin-inspect/dist/index.mjs:377:17
at async file://<redacted>/node_modules/vite-plugin-inspect/dist/index.mjs:377:17 (x2)
Reporting a bug?
I'm trying to use short bits of html for text formatting in Nuxt. However, the
yaml-eslint-parser
package that is used does not seem to allow that. It throws an error saying "Unexpected scalar token". I tried changing the formatting from yaml to json, but that does not seem to have any effect, since theyaml-eslint-parser
seems to be used for both cases.Expected behavior
Parsing the translation values regardless of its HTML content, when
strictMessage
is disabled.Reproduction
https://github.com/casperboone/nuxt-i18n-sfc-html-bug-reproduction
Issue Package
vite-plugin-vue-i18n
System Info
Screenshot
No response
Additional context
Validations
The text was updated successfully, but these errors were encountered: