netcore-preview icon indicating copy to clipboard operation
netcore-preview copied to clipboard

JS error when your plugin is not react

Open valdisiljuconoks opened this issue 5 years ago • 7 comments

index.ts:8 Uncaught TypeError: Cannot read property 'dataset' of null
    at Object.<anonymous> (index.ts:8)
    at n (bootstrap:19)
    at bootstrap:83
    at admin.bundle.js:1

image

valdisiljuconoks avatar Feb 16 '21 08:02 valdisiljuconoks

Thanks for reporting, this throws in error in your razor view? Not sure how I understand how to reproduce.

lunchin avatar Feb 17 '21 06:02 lunchin

Yeah, just created add-on based on razor pages. Will try to define repro steps (if any).

valdisiljuconoks avatar Feb 17 '21 07:02 valdisiljuconoks

That helps can try that and see

lunchin avatar Feb 17 '21 07:02 lunchin

@valdisiljuconoks it looks like you are loading the admin mode inside your add-on. the linked file is the entry module of our new admin mode. I guess you are using our View which loads the client resources correct?

barteksekula avatar May 20 '21 20:05 barteksekula

Correct

valdisiljuconoks avatar May 20 '21 21:05 valdisiljuconoks

Is there a reason you used the view instead of your own view? Is it okay to close this?

lunchin avatar Sep 03 '21 02:09 lunchin

Think we can close, cannot repro anymore

valdisiljuconoks avatar Sep 08 '21 04:09 valdisiljuconoks