MichaelKim / ag-grid-svelte

A Svelte wrapper for ag-grid
https://ag-grid-svelte.michael.kim/guide
MIT License
57 stars 17 forks source link

Doesn't work with VITE, mode development and package "entreprise" #2

Closed frck006 closed 1 year ago

frck006 commented 2 years ago

Hi,

Juste to say, there are a problem with the component when I compile with VITE in development mode. I want to use the license "entreprise" about AgGrid. The problem: features "entreprise" doesn't work, like "columns" panel or column with hierarchical, no alert message about license in the console, ... I import the component dynamically with "await import". At this moment, I see in "network" tab from Chrome, le module "entreprise" and after "community". Perhaps "community" replace something. (I don't know)

But, if I change the name of the package in "AgGridSvelte" like below,=> it works :)

image

MichaelKim commented 2 years ago

Thanks for the report! I think this has to do with Vite pre-bundling dependencies. Could you try:

frck006 commented 1 year ago

Thank you for this information.

It works with "--force" option..

MichaelKim commented 1 year ago

Glad that helped, I'll update the docs with more info for working with enterprise AG Grid.