Weird json external file loading
See original GitHub issueReporting a bug?
I got a weird behaviour when i add sometime a sub node into my json related to the languages. The weirdest thing is that when i’m working in dev it’s ok , this error only append with the build version.
In the screenshot below, if i remove the node “p” with ( v and z inside ) the error disapear.
Module versions (please complete the following information):
@intlify/vue-i18n-loader
: 2.0.3vue-i18n
: 9.0.0vue
: ^3.0.11
Screenshots
End my structure.
Generated code with build
The “undefinediundefined” line is created into the build code.
If i remove the node “p” in my json i got this in source code
So in the line before $e.render = Me , undefinedundefined is not existing.
By the way thanks for your great work.
Comment.
It’s seems that if i put my json file content into “https://jsonformatter.curiousconcept.com/” online tool and after i get the formatted result and i paste it into my json file it’s working perfectly. Could be problem of indentation ?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
As i’m building a big simple page application it’s quite difficult to give you a concrete example ( sorry ).
But as i said before i resolve the problem with an online json “formatting” tool. Now i’v install “Pretty JSON” in my Visual Studio code to avoid this online tool. It’s like some tabulations, indentations or spaces are causing this problem.
By the way thanks for all your work.
vue-i18n-loader will be deprecated near the future We can use unplugin-vue-i18n Thanks