question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Weird json external file loading

See original GitHub issue

Reporting 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.3
  • vue-i18n: 9.0.0
  • vue: ^3.0.11

Screenshots image

End my structure.

Generated code with build

image

The “undefinediundefined” line is created into the build code.

If i remove the node “p” in my json i got this in source code

image

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:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
shaan1974commented, Apr 5, 2021

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.

0reactions
kazuponcommented, Nov 16, 2022

vue-i18n-loader will be deprecated near the future We can use unplugin-vue-i18n Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Loading local JSON file - javascript - Stack Overflow
I am loading local file for first time, don't know why loading url is easier as I thought I had to do same....
Read more >
Is it really so hard to load a local JSON file? - Reddit
I'm working on a platformer game in HTML, and have the level data stored in a JSON file. It's right there, in the...
Read more >
Load JSON file locally using pure Javascript - CodePen
Having needed an pure javascript alternative to jQuery's $.getJSON() and $.parseJSON() recently I thought I would try and clear this up for ...
Read more >
How to read JSON files into HTML using JavaScript's fetch (no ...
Use JavaScript's fetch function to read in a JSON file. No external libraries needed!
Read more >
Import/parse local .json file work… | Apple Developer Forums
I'm using a Document Picker to import a .json file into my app from the Files Directory. On the simulator everything works great,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found