Closed ingyesid closed 6 months ago
hi, same
I also had this. There's a bunch of peer dependencies not listed on the installation instructions, you need to add these separately then it worked:
yarn add @babel/runtime@>=7.11.0 @codemirror/lint@>=6.0.0 @codemirror/state@>=6.0.0 @codemirror/theme-one-dark@>=6.0.0 @codemirror/view@>=6.0.0 codemirror@>=6.0.0 @codemirror/autocomplete@>=6.0.0 @codemirror/language@>=6.0.0 @codemirror/search@>=6.0.0 @codemirror/view@>=6.0.0 @lezer/common@^1.0.0
This was the warnings on installing strapi-plugin-loction:
yarn install v1.22.21
warning ../package.json: No license field
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
warning "@notum-cz/strapi-plugin-location > @strapi/design-system > @uiw/react-codemirror@4.21.21" has unmet peer dependency "@babel/runtime@>=7.11.0".
warning "@notum-cz/strapi-plugin-location > @strapi/design-system > @uiw/react-codemirror@4.21.21" has unmet peer dependency "@codemirror/state@>=6.0.0".
warning "@notum-cz/strapi-plugin-location > @strapi/design-system > @uiw/react-codemirror@4.21.21" has unmet peer dependency "@codemirror/theme-one-dark@>=6.0.0".
warning "@notum-cz/strapi-plugin-location > @strapi/design-system > @uiw/react-codemirror@4.21.21" has unmet peer dependency "@codemirror/view@>=6.0.0".
warning "@notum-cz/strapi-plugin-location > @strapi/design-system > @uiw/react-codemirror@4.21.21" has unmet peer dependency "codemirror@>=6.0.0".
warning "@notum-cz/strapi-plugin-location > @strapi/design-system > @uiw/react-codemirror > @uiw/codemirror-extensions-basic-setup@4.21.21" has unmet peer dependency "@codemirror/autocomplete@>=6.0.0".
warning "@notum-cz/strapi-plugin-location > @strapi/design-system > @uiw/react-codemirror > @uiw/codemirror-extensions-basic-setup@4.21.21" has unmet peer dependency "@codemirror/language@>=6.0.0".
warning "@notum-cz/strapi-plugin-location > @strapi/design-system > @uiw/react-codemirror > @uiw/codemirror-extensions-basic-setup@4.21.21" has unmet peer dependency "@codemirror/lint@>=6.0.0".
warning "@notum-cz/strapi-plugin-location > @strapi/design-system > @uiw/react-codemirror > @uiw/codemirror-extensions-basic-setup@4.21.21" has unmet peer dependency "@codemirror/search@>=6.0.0".
warning "@notum-cz/strapi-plugin-location > @strapi/design-system > @uiw/react-codemirror > @uiw/codemirror-extensions-basic-setup@4.21.21" has unmet peer dependency "@codemirror/view@>=6.0.0".
warning "@notum-cz/strapi-plugin-location > @strapi/design-system > @uiw/react-codemirror > @uiw/codemirror-extensions-basic-setup > @codemirror/autocomplete@6.12.0" has unmet peer dependency "@lezer/common@^1.0.0".
@pturner1989 how can i do that using npm or can i use both of them in my project?
it still happen
@raniaamina did you solve it ?
@FaijanSaifi99 not yet, i skip this plugin for now.
@raniaamina do you know any other option for managing and querying the latitude and logitude.
@raniaamina do you know any other option for managing and querying the latitude and logitude.
Currently just save it as string.
@raniaamina do you know any other option for managing and querying the latitude and logitude.
Currently just save it as string.
are you using filtering based on the latitude and longitude
@raniaamina do you know any other option for managing and querying the latitude and logitude.
Currently just save it as string.
are you using filtering based on the latitude and longitude
It depend on what front end need, simply use regex if you wanna filter the format. This one of them; https://ihateregex.io/expr/lat-long/
Btw, this conversation is out of topic issue, imo.
Still not working ... and i already installed the dependencies listed on @pturner1989 comment :(
hi, any news ?
If you want to use location based filtering you can do it with custome code
First enable the postgis extension in postgres database and the customize the endpoint like this
SELECT id, name FROM public.store WHERE ST_DWithin( ST_Transform(ST_SetSRID(ST_MakePoint(77.3433442537524, 28.58118352566312), 4326), 3857), ST_Transform(ST_SetSRID(ST_MakePoint(longitude, latitude), 4326), 3857), 1000) ORDER BY distance;
Any workaround?
Getting the error: │ │ Error: Could not load js config file /root/directnest/node_modules/@notum-cz/strapi-plugin-location/strapi-server.js: Cannot find module './server' │ │ Require stack: │ │ - /root/directnest/node_modules/@notum-cz/strapi-plugin-location/strapi-server.js │ │ - /root/directnest/node_modules/@strapi/utils/dist/index.js │ │ - /root/directnest/node_modules/@strapi/strapi/dist/commands/actions/admin/create-user/action.js │ │ - /root/directnest/node_modules/@strapi/strapi/dist/commands/actions/admin/create-user/command.js │ │ - /root/directnest/node_modules/@strapi/strapi/dist/commands/index.js │ │ - /root/directnest/node_modules/@strapi/strapi/dist/cli.js │ │ - /root/directnest/node_modules/@strapi/strapi/bin/strapi.js │ │ at loadJsFile (/root/directnest/node_modules/@strapi/strapi/dist/core/app-configuration/load-config-file.js:18:13) │ │ at Module.loadFile (/root/directnest/node_modules/@strapi/strapi/dist/core/app-configuration/load-config-file.js:37:14) │ │ at Object.loadPlugins (/root/directnest/node_modules/@strapi/strapi/dist/core/loaders/plugins/index.js:90:41) │ │ at async Strapi.loadPlugins (/root/directnest/node_modules/@strapi/strapi/dist/Strapi.js:311:5) │ │ at async Promise.all (index 3) │ │ at async Strapi.register (/root/directnest/node_modules/@strapi/strapi/dist/Strapi.js:341:5) │ │ at async Strapi.load (/root/directnest/node_modules/@strapi/strapi/dist/Strapi.js:425:5) │ │ at async Object.develop (/root/directnest/node_modules/@strapi/admin/dist/_chunks/index-sNH2VWbC.js:837:28) │ │ at async develop (/root/directnest/node_modules/@strapi/admin/dist/_chunks/develop-YNTGWKMC.js:61:5) │ │ at async Command.parseAsync (/root/directnest/node_modules/commander/lib/command.js:923:5) │ │
This is a duplicate of #126
hi, any news ?
Hi, it should be fixed! :)
I am trying to use the plugin following the official guide but i am getting the following error
Error: Could not load js config file ││ /home/folks/node_modules/@notum-cz/strapi-plugin-location/strapi-server.js: Cannot find module './server' ││ Require stack: ││ - /home/folks/node_modules/@notum-cz/strapi-plugin-location/strapi-server.js ││ - /home/folks/node_modules/@strapi/utils/dist/index.js ││ - /home/folks/node_modules/@strapi/strapi/dist/commands/actions/admin/create-user/action.js ││ - /home/folks/node_modules/@strapi/strapi/dist/commands/actions/admin/create-user/command.js ││ - /home/folks/node_modules/@strapi/strapi/dist/commands/index.js ││ - /home/folks/node_modules/@strapi/strapi/dist/cli.js ││ - /home/folks/node_modules/@strapi/strapi/bin/strapi.js ││ at loadJsFile ││ (/home/folks/node_modules/@strapi/strapi/dist/core/app-configuration/load-config-file.js:18:13) ││ at Module.loadFile ││ (/home/folks/node_modules/@strapi/strapi/dist/core/app-configuration/load-config-file.js:37:14) ││ at Object.loadPlugins (/home/folks/node_modules/@strapi/strapi/dist/core/loaders/plugins/index.js:90:41) ││ at async Strapi.loadPlugins (/home/folks/node_modules/@strapi/strapi/dist/Strapi.js:311:5) ││ at async Promise.all (index 3) ││ at async Strapi.register (/home/folks/node_modules/@strapi/strapi/dist/Strapi.js:341:5) ││ at async Strapi.load (/home/folks/node_modules/@strapi/strapi/dist/Strapi.js:425:5) ││ at async Object.develop (/home/folks/node_modules/@strapi/admin/dist/_chunks/index-sNH2VWbC.js:837:28) ││ at async develop (/home/folks/node_modules/@strapi/admin/dist/_chunks/develop-YNTGWKMC.js:61:5) ││ at async Command.parseAsync (/home/folks/node_modules/commander/lib/command.js:923:5)
Screenshots
System