# Aurelia-slick-grid error

**URL:** <https://discourse.aurelia.io/t/aurelia-slick-grid-error/3253>\
**Category:** Help Requests\
**Created:** [February 20, 2020, 4:52am UTC](https://discourse.aurelia.io/t/aurelia-slick-grid-error/3253 "2020-02-20T04:52:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanielRNichols](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/danielrnichols/32/1742_2.png) [@DanielRNichols](https://discourse.aurelia.io/u/DanielRNichols)\
**Post date:** [February 20, 2020, 4:52am UTC](https://discourse.aurelia.io/t/aurelia-slick-grid-error/3253/1 "2020-02-20T04:52:40Z")

</div>

Hi,  
I’m attempting to create a very small test application using aurelia-slick-grid, but I’m getting an error:

ERROR [app-router] TypeError: Cannot assign to read only property ‘dataset’ of object ‘#’

The app is using Typescript and the built-in bundler. It can be found here: [https://github.com/DanielRNichols/auslickgridtest](https://github.com/DanielRNichols/auslickgridtest)

Any thoughts?

Thanks,  
Danny

---

<div class="post-metadata">

**Author:** ![tristanh](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/tristanh/32/1738_2.png) [@tristanh](https://discourse.aurelia.io/u/tristanh)\
**Post date:** [February 20, 2020, 5:21am UTC](https://discourse.aurelia.io/t/aurelia-slick-grid-error/3253/2 "2020-02-20T05:21:45Z")

</div>

One thing I noticed looking at your slickgrid .ts/.html is that you’re binding 2 properties (columnDefinitions and gridOptions) in your html, while these do not exist in your typescript class. Perhaps that is causing some issues?

---

<div class="post-metadata">

**Author:** ![ghiscoding](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/ghiscoding/32/1199_2.png) [@ghiscoding](https://discourse.aurelia.io/u/ghiscoding)\
**Post date:** [February 20, 2020, 5:37am UTC](https://discourse.aurelia.io/t/aurelia-slick-grid-error/3253/3 "2020-02-20T05:37:11Z")

</div>

I was about to write exactly the same thing as what @tristanh just pointed out, both Column Definitions and Grid Options must be passed for Aurelia-Slickgrid to work properly.

If you want to start with a basic project, I would suggest you to clone the [Aurelia-Slickgrid-Demos](https://github.com/ghiscoding/aurelia-slickgrid-demos) and/or follow the [HOW TO - Step by Step](https://github.com/ghiscoding/aurelia-slickgrid/wiki/HOWTO--Step-by-Step) and this is all written in the project [readme](https://github.com/ghiscoding/aurelia-slickgrid#installation) installation section of the GitHub homepage.

---

<div class="post-metadata">

**Author:** ![DanielRNichols](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/danielrnichols/32/1742_2.png) [@DanielRNichols](https://discourse.aurelia.io/u/DanielRNichols)\
**Post date:** [February 20, 2020, 12:21pm UTC](https://discourse.aurelia.io/t/aurelia-slick-grid-error/3253/4 "2020-02-20T12:21:27Z")

</div>

Sorry, I was creating this test app from another app, and didn’t merge the typescript file correctly. I have updated the typescript file to have gridOptions and columnDefinitions; however, I’m still getting the same error. I did not start by cloning the Aurelia-Slickgrid-Demos repository, but I was attempting to follow the How To - Step by Step guide. I’m sure that I just missed something. I’ll keep at it. Thanks for quick response.

Danny

---

<div class="post-metadata">

**Author:** ![tristanh](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/tristanh/32/1738_2.png) [@tristanh](https://discourse.aurelia.io/u/tristanh)\
**Post date:** [February 20, 2020, 3:52pm UTC](https://discourse.aurelia.io/t/aurelia-slick-grid-error/3253/5 "2020-02-20T15:52:59Z")

</div>

I think I found your issue.

Did you by any chance forgot to configure aurelia to load the `aurelia-slickgrid` plugin?  
I’m missing the following line in your `main.ts`:  
`aurelia.use.plugin(PLATFORM.moduleName("aurelia-slickgrid"));`

---

<div class="post-metadata">

**Author:** ![DanielRNichols](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/danielrnichols/32/1742_2.png) [@DanielRNichols](https://discourse.aurelia.io/u/DanielRNichols)\
**Post date:** [February 20, 2020, 11:22pm UTC](https://discourse.aurelia.io/t/aurelia-slick-grid-error/3253/6 "2020-02-20T23:22:07Z")

</div>

That was another stupid mistake on my part when trying to upload a simplified example; however, I don’t think that it was the ultimate issue. I think that the issue had to do with what I had (or didn’t have) in the aurelia.json file. I restarted my test using a webpack setup and was able to get it running. I also went back and tried another project using the built-in bundler. I got that working as well, but I need to learn more about how the bundlers work, as this is causing most of my issues/confusion. Thanks again for the quick responses.

---

<div class="post-metadata">

**Author:** ![ghiscoding](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/ghiscoding/32/1199_2.png) [@ghiscoding](https://discourse.aurelia.io/u/ghiscoding)\
**Post date:** [February 21, 2020, 6:03pm UTC](https://discourse.aurelia.io/t/aurelia-slick-grid-error/3253/7 "2020-02-21T18:03:34Z")

</div>

Glad to see you got all of that resolved with @tristanh help (thanks for that).  
If you’re a happy customer, then don’t forget to upvote the lib ⭐ 😉

and as a side note I actually just did another small patch release to add some small excel export options, version is now at `2.17.5`.
