Cannot find module '@grapecity/dataviews.common/en'.

Posted by: jak93861 on 2 December 2020, 1:26 am EST

  • Posted 2 December 2020, 1:26 am EST

    After npm Installing @grapecity/dataviews.react and tried to launch with the given example in the Documentation, It shows an compilation error as Cannot find module '@grapecity/dataviews.common/en'.
  • Replied 6 December 2020, 7:47 pm EST

    Hi,

    DVJS does not provide any @grapecity/dataviews.common/en package. Could please provide the sample which replicates the issue? so that we could investigate it further.

    If you just want to change the locale cultureInfo you may refer to the following docs https://www.grapecity.com/dataviewsjs/docs/dev-guide/using-dataviews/localization#localization

    Regards
    Avinash
  • Replied 7 December 2020, 8:07 pm EST

    Hi,
    That issue is solved , it was because of some typescript version mismatch.
    How can we render a custom react component in a column? In some examples you are giving the html as string to render that in grid , but I need to render a react component in a column instead of string value. Could you please help on this.
  • Replied 8 December 2020, 7:52 pm EST

    Hi,

    We are sorry but this feature is currently not supported. Further, we have made an enhancement request on your behalf. We will update you on the development of this case. The internal ID for this case will be JSVIEW-697.

    Regards
    Avinash
  • Marked as Answer

    Replied 15 December 2020, 7:33 pm EST

    Hi,

    The Dev team informed us that The column presenter definition uses doT.js syntax (http://olado.github.io/doT/index.html).
    You can define a React component that is accessible through the dot notation. More info can link
    https://medium.com/risan/react-component-with-dot-notation-7a9853dbf33b .

    Regards
    Avinash
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels