Skip to content

Commit

Permalink
fix(debug): Import JSON tree Svelte component to fix runtime error
Browse files Browse the repository at this point in the history
Relying on the compiled JavaScript of the JSON Tree component caused 
runtime errors. The best explanation I’ve read is here: 
<sveltejs/svelte#3671 (comment)>
  • Loading branch information
delucis committed Aug 31, 2020
1 parent 88b0ee7 commit 463a95f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/debug/main/Main.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script>
export let client;
const JSONTree = require('svelte-json-tree-auto');
import JSONTree from 'svelte-json-tree-auto/src/Root.svelte';
import Move from './Move.svelte';
import Controls from './Controls.svelte';
import PlayerInfo from './PlayerInfo.svelte';
Expand Down

0 comments on commit 463a95f

Please sign in to comment.