We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Version 20.3.48+ give "TypeError: Object prototype may only be an Object or null: undefined at setPrototypeOf (<anonymous>)"

Every time, updating syncfusion vue components is a really painful task. This time I'm getting a strange error during tests and I can't use the new version.

```

    TypeError: Object prototype may only be an Object or null: undefined

        at setPrototypeOf (<anonymous>)

```

The old version "20.3.47" was working fine, but I'm not able to install it in the example repo because it gets the new sub-components with the but inside them.

Tried today with "20.3.49" but same error.

You can try with this repo: https://github.com/dennybiasiolli/vue27-syncfusion-bug

  • - clone the repo
  • `npm install`
  • `npm run test:unit -- -u`

9 Replies

DE Denny October 12, 2022 07:54 AM UTC

If you need more details about this: just try with this test code, it's breaking during the import.

import { Toolbar } from '@syncfusion/ej2-vue-grids';

describe('Fake test', () => {
it('does not work', () => {
expect(true).toBe(true);
});
});


DE Denny October 12, 2022 08:08 AM UTC

Same error, in jest tests, if

import foo from '@syncfusion/ej2-vue-base';


DE Denny October 12, 2022 12:45 PM UTC

It seems the problem started with the `ej2-vue-base` 20.3.48 package.

The problem is this commit: https://github.com/syncfusion/ej2-vue-ui-components/commit/08dac8fc4af9c9a92621e37923fc7268f9f35de3#diff-8ce065eecc2fb15bf911535d1b27f523b3768918cb9a3d98e6cbb1e83c2ffab9

You changed `components/base/src/component-base.ts` without even testing.



DE Denny October 12, 2022 12:50 PM UTC

Suggestion on how to fix the issue here: https://github.com/syncfusion/ej2-vue-ui-components/issues/91



DE Denny October 12, 2022 01:28 PM UTC

Maybe it's not even that, but something else in the build process of `dist` files.

I don't know how to help more, let me know if you need something else



RS Ragunath Sukumaran Syncfusion Team October 13, 2022 03:13 PM UTC

Hi Denny,


We are validating your reported query, but we need some time for validation. So we will update you the further details on tomorrow(14th October 2022).


We appreciate your patience until then.


Regards,
Ragunath S



RS Ragunath Sukumaran Syncfusion Team October 14, 2022 02:29 PM UTC

Hi Denny,


Sorry for the inconvenience caused.


We have considered this as a bug at our end, we will fix this issue in our upcoming weekly patch release which is scheduled to roll out in the 18th of October 2022. Please refer to the below feedback link to track the status of this issue.

https://www.syncfusion.com/feedback/38421/need-to-fix-the-issue-with-the-ej2-vue-base-umd-file-generation


We appreciate your patience until.


Regards,
Ragunath S



DE Denny October 18, 2022 03:12 PM UTC

It's working with the new v20.3.50, thank you



JS Jamuna Sundaram Syncfusion Team October 19, 2022 06:44 AM UTC

Hi Denny,


Thanks for the update.

Please get back to us if you have any queries.

Regards,
jamuna Sundaram



Loader.
Live Chat Icon For mobile
Up arrow icon