Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: existing configuration and unexpected behavior #9725

Closed
COV-GIS opened this issue Jul 2, 2024 · 4 comments
Closed

Question: existing configuration and unexpected behavior #9725

COV-GIS opened this issue Jul 2, 2024 · 4 comments

Comments

@COV-GIS
Copy link

COV-GIS commented Jul 2, 2024

What does this mean?

image

Thanks.

@jcfranco
Copy link
Member

jcfranco commented Jul 2, 2024

2.10.0 (see #8848) added a way to check the components version at runtime. It does so by 'stamping' the version onto a global calciteConfig variable when Stencil's global script executes. This warning message will be displayed if there is an existing version on the global config when stamping. We have an issue to revisit the message to provide better context.

Would you mind sharing more info about your use case? It might be useful for #9721.

@COV-GIS
Copy link
Author

COV-GIS commented Jul 3, 2024

Thanks @jcfranco for explanation. I wasn't too concerned with the versions matching but definitely wanted to understand if there started to be issues. Not 100% on this but after some digging methinks it's because of vite/rollup and all the magic module optimization, bundling and loading. My only suggestion would be to not warn if the versions match.

@COV-GIS COV-GIS closed this as completed Jul 3, 2024
@jcfranco
Copy link
Member

jcfranco commented Jul 5, 2024

Not 100% on this but after some digging methinks it's because of vite/rollup and all the magic module optimization, bundling and loading. My only suggestion would be to not warn if the versions match.

@COV-GIS Would you be able to share more details behind your use case? I started working on #9721 and was not able to reproduce this same-version warning with the calcite-components-examples repo. The version check happens at the global script level, which should be happening once, so there might be something else going on.

@COV-GIS
Copy link
Author

COV-GIS commented Jul 8, 2024

Here you go @jcfranco: https://github.com/CityOfVernonia/vite-map-app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants