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 - quickstart with error and custom not works #57

Closed
Gaetanbrl opened this issue Jul 3, 2023 · 2 comments
Closed

master - quickstart with error and custom not works #57

Gaetanbrl opened this issue Jul 3, 2023 · 2 comments

Comments

@Gaetanbrl
Copy link
Contributor

Gaetanbrl commented Jul 3, 2023

Version

branch : master
node: 12.22.12
submodule :

commit d4377905577325e3f673225c0edfbbb01530b839
#8933 Search bar covers Identify header when vector layers are queried (#8961)

Description

Hi,
Today i would init new mapStoreExtension.

So, i follow the master documentation and here is my results.

Quickstart

nmv use 12.22
git clone --recursive https://github.com/geosolutions-it/MapStoreExtension.git
npm install
npm start

Now, front and back seems starded...

[frontend] provide-module modules 378 bytes 9 modules
[frontend] modules by path ./js/ 8.09 KiB
[frontend]   modules by path ./js/extension/ 5.82 KiB 6 modules
[frontend]   ./js/app.jsx 1.94 KiB [built] [code generated]
[frontend]   ./js/extensions.js 333 bytes [built] [code generated]
[frontend] 14 modules
[frontend] webpack 5.9.0 compiled successfully in 47926 ms
[frontend] ℹ 「wdm」: Compiled successfully.

But, the front end return too many errors :

image

image

Custom extension

So, now i open app.js and replace :

const appConfig = require('@mapstore/product/appConfig').default;
...by...

const appConfig = {
    ...require('@mapstore/product/appConfig').default,
        pages: [{
        name: "mapviewer",
        path: "/",
        component: require('@mapstore/product/pages/MapViewer').default
    }]
};

Next i restart with npm start command and try to open mapstore map but only get white page.

@Gaetanbrl
Copy link
Contributor Author

Gaetanbrl commented Jul 3, 2023

  • I forget a point,
    When we clone project, we get package-lock file in root dir.

On first npm install, process seems to be blocked and fail :

npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!.

If i remove package-lock file, i can go further.

@Gaetanbrl
Copy link
Contributor Author

Gaetanbrl commented Jul 3, 2023

Seems better with tags/2023.01.02 :

Install :

nvm use 12.22
git clone --recursive https://github.com/geosolutions-it/MapStoreExtension.git
cd /MapStoreExtenstion
rm package-lock.json
git checkout tags/v2023.01.02
git submodule update
npm install

Start :

npm run "fe:start"

image

@Gaetanbrl Gaetanbrl changed the title quickstart with error and custom not works master - quickstart with error and custom not works Jul 3, 2023
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