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

Master - localConfig is broken #28

Closed
Gaetanbrl opened this issue Jul 28, 2022 · 3 comments
Closed

Master - localConfig is broken #28

Gaetanbrl opened this issue Jul 28, 2022 · 3 comments

Comments

@Gaetanbrl
Copy link
Contributor

On start, we get this error :

xhr.js:210          GET http://localhost:8081/localConfig.json 404 (Not Found)

ConfigUtils.js:216 Uncaught (in promise) Error: local configuration file is broken
    at eval (ConfigUtils.js:216:24)

But localConfig.json exist in /configs folder.

What is wrong since #25 ?

@Gaetanbrl
Copy link
Contributor Author

Source of this issue :

MS2 try to call localConfig.json path instead of configs/localConfig.json correct path :

https://github.com/geosolutions-it/MapStore2/blob/fac9d4aa9d5b1c43b559d50820bf6188f81de8f6/web/client/utils/ConfigUtils.js#L143

README.md don't talk about this issue (param about configs folder or not...)

@Gaetanbrl
Copy link
Contributor Author

Gaetanbrl commented Jul 28, 2022

initial error is due to wrong config in js/app.jsx .

I use default commented value :
https://github.com/jdev-org/MapStoreExtension/blob/8ae58de1a9e9a25c216ac9ab132a7a6f48e5756d/js/app.jsx#L22

Instead of :

ConfigUtils.setLocalConfigurationFile('configs/localConfig.json');

Now all work fine.

I think this comment need to be update.

@Gaetanbrl
Copy link
Contributor Author

Thanks for PR merge.

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

1 participant