Купили GIS WebService SE 15 для Astra Linux и GIS WebToolKit.
ОС Astra Linux SE 1.7, Сервис настроил, ключ видит, все работает.
Установил Node.js 20.13.0 вместо родного 10
Выполнил npm instal
Код |
---|
npm warn deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm warn deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm warn deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm warn deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm warn deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm warn deprecated w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin.
npm warn deprecated domexception@2.0.1: Use your platform's native DOMException instead
npm warn deprecated abab@2.0.6: Use your platform's native atob() and btoa() methods instead
npm warn deprecated consolidate@0.15.1: Please upgrade to consolidate v1.0.0+ as it has been modernized with several long-awaited fixes implemented. Maintenance is supported by Forward Email at https://forwardemail.net ; follow/watch https://github.com/ladjs/consolidate for updates and release changelog
npm warn deprecated webpack-chain@6.5.1: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm warn deprecated @babel/plugin-proposal-class-properties@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
npm warn deprecated vue@2.6.14: Vue 2 has reached EOL and is no longer actively maintained. See https://v2.vuejs.org/eol/ for more details.
npm warn deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm warn deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
added 2000 packages, and audited 2001 packages in 6m
250 packages are looking for funding
run `npm fund` for details
19 vulnerabilities (10 moderate, 3 high, 6 critical)
To address issues that do not require attention, run:
npm audit fix
To address all issues possible (including breaking changes), run:
npm audit fix --force
Some issues need review, and may require choosing
a different dependency.
Run `npm audit` for details.
|
Не знаю, насколько важно сообщение
Цитата |
---|
19 vulnerabilities (10 moderate, 3 high, 6 critical) |
Затем выполнил npm run build-lib
Код |
---|
> MapVue@6.19.0 build-lib
> export VUE_CLI_SERVICE_CONFIG_PATH=vue.config.lib.js&&vue-cli-service build --formats umd-min --target lib --filename $npm_package_name-$npm_package_version-$BUILDNUMB ./src/index.ts --name VueGWTK
All browser targets in the browserslist configuration have supported ES module.
Therefore we don't build two separate bundles for differential loading.
⠏ Building for production as library (umd-min)...
ERROR Failed to compile with 1 error 17:57:38
error in ./src/components/GwtkMapObjectPanelControl/task/components/GwtkMapObjectWidget/GwtkMapObjectItemEditor/GwtkMapObjectItemEditor.ts?vue&type=script&lang=ts&external
Module not found: Error: Can't resolve '@/components/GwtkMapObjectPanelControl/task/components/GwtkMapObjectWidget/GwtkMapObjectItemEditor/GwtkMapObjectItemSemanticEditor/GwtkMapObjectItemSemanticEditor.vue' in '/home/administrator/GIS WebToolkit SE/src/components/GwtkMapObjectPanelControl/task/components/GwtkMapObjectWidget/GwtkMapObjectItemEditor'
ERROR Error: Build failed with errors.
Error: Build failed with errors.
at /home/administrator/GIS WebToolkit SE/node_modules/@vue/cli-service/lib/commands/build/index.js:207:23
at /home/administrator/GIS WebToolkit SE/node_modules/webpack/lib/webpack.js:159:8
at /home/administrator/GIS WebToolkit SE/node_modules/webpack/lib/MultiCompiler.js:622:5
at /home/administrator/GIS WebToolkit SE/node_modules/neo-async/async.js:2830:7
at done (/home/administrator/GIS WebToolkit SE/node_modules/neo-async/async.js:2865:11)
at /home/administrator/GIS WebToolkit SE/node_modules/neo-async/async.js:2818:7
at /home/administrator/GIS WebToolkit SE/node_modules/webpack/lib/HookWebpackError.js:68:3
at Hook.eval [as callAsync] (eval at create (/home/administrator/GIS WebToolkit SE/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/administrator/GIS WebToolkit SE/node_modules/webpack/node_modules/tapable/lib/Hook.js:18:14)
at Cache.shutdown (/home/administrator/GIS WebToolkit SE/node_modules/webpack/lib/Cache.js:156:23)
at /home/administrator/GIS WebToolkit SE/node_modules/webpack/lib/Compiler.js:1358:15
at Hook.eval [as callAsync] (eval at create (/home/administrator/GIS WebToolkit SE/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/administrator/GIS WebToolkit SE/node_modules/webpack/node_modules/tapable/lib/Hook.js:18:14)
at Compiler.close (/home/administrator/GIS WebToolkit SE/node_modules/webpack/lib/Compiler.js:1351:23)
at /home/administrator/GIS WebToolkit SE/node_modules/webpack/lib/MultiCompiler.js:619:14
at arrayEach (/home/administrator/GIS WebToolkit SE/node_modules/neo-async/async.js:2405:9)
at Object.each (/home/administrator/GIS WebToolkit SE/node_modules/neo-async/async.js:2846:9)
at MultiCompiler.close (/home/administrator/GIS WebToolkit SE/node_modules/webpack/lib/MultiCompiler.js:616:12)
at /home/administrator/GIS WebToolkit SE/node_modules/webpack/lib/webpack.js:158:16
at /home/administrator/GIS WebToolkit SE/node_modules/webpack/lib/MultiCompiler.js:596:14
at processQueueWorker (/home/administrator/GIS WebToolkit SE/node_modules/webpack/lib/MultiCompiler.js:533:6)
at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
|
Ну и на закуску попытался сделать npm run serve
Код |
---|
> MapVue@6.19.0 preserve
> npx copyfiles -u 2 node_modules/web-ifc/web-ifc.wasm public/gwtkse/wasm/
> MapVue@6.19.0 serve
> vue-cli-service serve
INFO Starting development server...
ERROR Failed to compile with 1 error 18:00:46
error in ./src/components/System/Vuetify/assets/icons/address-in-point.svg?sprite
Syntax Error: TypeError: loadConfig is not a function
ERROR in ./src/components/GwtkMapObjectPanelControl/task/components/GwtkMapObjectWidget/GwtkMapObjectItemEditor/GwtkMapObjectItemEditor.ts?vue&type=script&lang=ts&external (./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41.use[1]!./src/components/GwtkMapObjectPanelControl/task/components/GwtkMapObjectWidget/GwtkMapObjectItemEditor/GwtkMapObjectItemEditor.ts?vue&type=script&lang=ts&external) 15:0-213
Module not found: Error: Can't resolve '@/components/GwtkMapObjectPanelControl/task/components/GwtkMapObjectWidget/GwtkMapObjectItemEditor/GwtkMapObjectItemSemanticEditor/GwtkMapObjectItemSemanticEditor.vue' in '/home/administrator/GIS WebToolkit SE/src/components/GwtkMapObjectPanelControl/task/components/GwtkMapObjectWidget/GwtkMapObjectItemEditor'
... тут еще куча ошибок ...
ERROR in ./src/components/System/Vuetify/assets/icons/3d-wireframe-view.svg?sprite
Module build failed (from ./node_modules/svgo-loader/index.js):
TypeError: loadConfig is not a function
at Object.loader (/home/administrator/GIS WebToolkit SE/node_modules/svgo-loader/index.js:9:20)
at module.exports (/home/administrator/GIS WebToolkit SE/node_modules/svgo-loader/index.js:17:10)
@ ./src/components/System/Vuetify/assets/icons/ ?sprite sync ^\.\/.*\.svg$ ./3d-wireframe-view.svg
@ ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41.use[1]!./src/components/System/Vuetify/GwtkIcon/GwtkIcon.ts?vue&type=script&lang=ts&external 10:16-76
@ ./src/components/System/Vuetify/GwtkIcon/GwtkIcon.ts?vue&type=script&lang=ts&external 1:0-193 1:209-212 1:214-404 1:214-404
@ ./src/components/System/Vuetify/GwtkIcon/GwtkIcon.vue 2:0-67 3:0-62 3:0-62 10:2-8
@ ./src/components/System/Vuetify/GwtkIcon/index.ts 1:0-38 2:0-20
@ ./src/components/System/Vuetify/index.ts 3:0-64 35:26-34
@ ./src/components/System/index.ts 1:0-19
@ ./src/MapVue.ts 25:0-45 130:12-22
@ ./src/main.ts 3:0-30 415:23-29
webpack compiled with 178 errors
No issues found.
|
собственно вопрос: а как правильно настоить среду и с чего начать разработку?
тема дя меня совершенно новая, ранее работал с обыкновенным GIS ToolKit 15