GithubHelp home page GithubHelp logo

Comments (10)

aimeos avatar aimeos commented on June 26, 2024 1

You need to point the storefront to /jsonapi frontend JSON:API, not the GraphQL admin API.

from vuestore-theme.

Maksimius avatar Maksimius commented on June 26, 2024 1

First error:
require() of ES Module /vuestore-theme/node_modules/@glidejs/glide/dist/glide.js from /vuestore-theme/node_modules/vue-server-renderer/build.dev.js not supported. glide.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules. Instead rename glide.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /vuestore-theme/node_modules/@glidejs/glide/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).

Second error:
[theme] ERROR [Vue warn]: Error in setup: "Error: This must be called within a setup function."
[theme]
[theme] found in
[theme]
[theme] ---> at _theme/layouts/default.vue
[theme]
[theme]

from vuestore-theme.

skynetindia avatar skynetindia commented on June 26, 2024

@maynor96 Can you please provide more details about it
if possible list of errors so we can look and resolve it

from vuestore-theme.

jajouka79 avatar jajouka79 commented on June 26, 2024

did you solve this issue? it seems like the repo doesn't work

from vuestore-theme.

JoLeoAntares avatar JoLeoAntares commented on June 26, 2024

I have done the same steps (git clone https://github.com/skynetindia/vuestore-theme.git), yarn dev works for me but after having launch my local storefront (tried to connect to graph sql API of my Aimeos by changing DOMAIN=http://127.0.0.1:8000/admin/default/graphql inside packages/theme/.env), I have a lot of errors and don't really understand what's wrong ?

Capture d’écran du 2023-07-15 17-47-22

from vuestore-theme.

JoLeoAntares avatar JoLeoAntares commented on June 26, 2024

Thanks @aimeos and with JSON:API, is it possible to make POST requests on every Aimeos Resources ? I wanted to make also my own backend because I have to manage a lot of new Resources inside and I don't really find how to really customize Backend.

from vuestore-theme.

JoLeoAntares avatar JoLeoAntares commented on June 26, 2024

@aimeos do I need to replace by DOMAIN=http://127.0.0.1:8000/admin/default/jsonadm ?

from vuestore-theme.

JoLeoAntares avatar JoLeoAntares commented on June 26, 2024

Ok it's directly DOMAIN=http://127.0.0.1:8000/jsonapi, I didn't find it inside Aimeos documentation. but I still have a lot reactive errors insode components ?

image

from vuestore-theme.

JoLeoAntares avatar JoLeoAntares commented on June 26, 2024

@skynetindia @aimeos Sorry for my questions but when I want to use SSR mode, I have also this error :

image

from vuestore-theme.

skynetindia avatar skynetindia commented on June 26, 2024

Okay we will look for this and give feedback asap

from vuestore-theme.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.