Closed adjavaherian closed 8 years ago
@adjavaherian Can get your stats.json output and share that? (I can't execute your webpack config without the whole app, so I'm not sure what's going on).
I was receiving a similar error, but was able to work around it by changing:
<script>window.nodesData = JSON.parse('{ ...loadsOfJson... }');</script>
to
<script>window.nodesData = { ...loadsOfJson... }</script>
In the generated stats file.
@Dean177 Can you possibly share your stats.json output?
Here is the html file output: stats.html.txt
And webpacks stats.json: buildstats.json.txt
The generated json does work if I drop it on: http://chrisbateman.github.io/webpack-visualizer/
But the generated html file throws:
Uncaught SyntaxError: Unexpected token
(For some reason github doesn't allow upload of .json files, hence the .txt extension)
Verified that this works now! Thanks.
Any idea what might be causing this?
All I see in the chrome console is this when I load the stats.html
Uncaught SyntaxError: Unexpected token p(anonymous function) @ stats.html:165
Output looks pretty normal, but I do have a very complex config.