Errors when inspecting fatal error imports

I'm trying to import some pages and received a fatal error. When I click on the filename to inspect it, the page just loads forever and I get some errors in the browser console.


(anonymous)	@	main.js:421
send	@	jquery-2.1.0.min.js:4
ajax	@	jquery-2.1.0.min.js:4
ajax	@	router:5
(anonymous)	@	main.js:1
(anonymous)	@	jquery-2.1.0.min.js:2
j	@	jquery-2.1.0.min.js:2
fireWith	@	jquery-2.1.0.min.js:2
e.<computed>	@	jquery-2.1.0.min.js:2
j	@	jquery-2.1.0.min.js:2
add	@	jquery-2.1.0.min.js:2
(anonymous)	@	jquery-2.1.0.min.js:2
j	@	jquery-2.1.0.min.js:2
fireWith	@	jquery-2.1.0.min.js:2
e.<computed>	@	jquery-2.1.0.min.js:2
(anonymous)	@	main.js:1
i	@	main.js:329
setTimeout (async)		
(anonymous)	@	main.js:421
t.withMinimumDelay	@	main.js:1
b	@	main.js:1
t.importEditor	@	main.js:1
f	@	main.js:399
load	@	main.js:399
cb	@	main.js:534
e.<computed>	@	main.js:421
(anonymous)	@	main.js:1
E	@	main.js:1
(anonymous)	@	main.js:1
dispatch	@	jquery-2.1.0.min.js:3
$event.dispatch	@	drag-tools-2.2x.js:378
r.handle	@	jquery-2.1.0.min.js:3
main.js:310 Uncaught TypeError: Cannot read property 'value' of undefined
    at Function.x.fromTextArea (main.js:310)
    at Object.setup (main.js:399)
    at Object.<anonymous> (main.js:1)
    at j (jquery-2.1.0.min.js:2)
    at Object.fireWith [as rejectWith] (jquery-2.1.0.min.js:2)
    at x (jquery-2.1.0.min.js:4)
    at XMLHttpRequest.<anonymous> (jquery-2.1.0.min.js:4)
    at XMLHttpRequest.i (main.js:329)

x.fromTextArea	@	main.js:310
setup	@	main.js:399
(anonymous)	@	main.js:1
j	@	jquery-2.1.0.min.js:2
fireWith	@	jquery-2.1.0.min.js:2
x	@	jquery-2.1.0.min.js:4
(anonymous)	@	jquery-2.1.0.min.js:4
i	@	main.js:329
load (async)		
t.fill	@	main.js:421
n	@	main.js:421
(anonymous)	@	main.js:421
(anonymous)	@	main.js:421
send	@	jquery-2.1.0.min.js:4
ajax	@	jquery-2.1.0.min.js:4
ajax	@	router:5
(anonymous)	@	main.js:1
(anonymous)	@	jquery-2.1.0.min.js:2
j	@	jquery-2.1.0.min.js:2
fireWith	@	jquery-2.1.0.min.js:2
e.<computed>	@	jquery-2.1.0.min.js:2
j	@	jquery-2.1.0.min.js:2
add	@	jquery-2.1.0.min.js:2
(anonymous)	@	jquery-2.1.0.min.js:2
j	@	jquery-2.1.0.min.js:2
fireWith	@	jquery-2.1.0.min.js:2
e.<computed>	@	jquery-2.1.0.min.js:2
(anonymous)	@	main.js:1
i	@	main.js:329
setTimeout (async)		
(anonymous)	@	main.js:421
t.withMinimumDelay	@	main.js:1
b	@	main.js:1
t.importEditor	@	main.js:1
f	@	main.js:399
load	@	main.js:399
cb	@	main.js:534
e.<computed>	@	main.js:421
(anonymous)	@	main.js:1
E	@	main.js:1
(anonymous)	@	main.js:1
dispatch	@	jquery-2.1.0.min.js:3
$event.dispatch	@	drag-tools-2.2x.js:378
r.handle	@	jquery-2.1.0.min.js:3

Hi Allan,

Welcome to the Prismic community,

Can you please tell us what the exact error you get is? And it will be great if you can share with us your repository name and the zip file you are trying to import (in a private message if necessary) so that I try to reproduce the error.

Looking forward to your reply,
Fares

Hi Fares,

The stack trace I posted are the only errors I get in the console. The UI on the website doesn't show anything.

I did some more digging into it and it looks like the error happens whenever there is a space (or maybe capital letters) in the json filenames. I converted all the files to kebab casing and it worked.

Cheers,
Allan

1 Like

Perfect, thanks for letting us know.
Please don't hesitate to reach to us if you need any assistance.