A
AlokaiFabianClemenz

Glide.js is treated as an ES module

Hi, i get this error after running yarn start and trying to access the page Does anyone know how to handle it? i'm using the custom boilerplate integration.
R
rohrigβ€’379d ago
Hi @FabianClemenz πŸ‘‹ , which node version are you using?
F
FabianClemenzβ€’378d ago
Hi @rohrig , i'm using 16.14.2
F
FabianClemenzβ€’378d ago
GitHub
[BUG]: glidejs cause error Β· Issue #2494 Β· vuestorefront/storefront...
Describe the bug When trying to run project with SFUI 0.13.3 version this bug appears: Probably downgrading glidejs version should help. How to reproduce Steps to reproduce the behavior: run projec...
R
rohrigβ€’378d ago
@FabianClemenz can you create a minimal reproduction or tell me the exact steps I need to do to get where you are?
R
rohrigβ€’378d ago
GitHub
GitHub - vuestorefront/ecommerce-integration-boilerplate: Boilerpla...
Boilerplate for creating new integrations for Vue Storefront Next - open-source frontend for any eCommerce - GitHub - vuestorefront/ecommerce-integration-boilerplate: Boilerplate for creating new i...
F
FabianClemenzβ€’378d ago
yes i'm using the boilerplate and deployed it with @skirianov help to DO Had to set the node version in package.json to 16.14.x - because DO would use 17.x with the ">=14.X" directive when accessing the deployed App, i get this error
R
rohrigβ€’378d ago
"@vue-storefront/middleware": "~2.5.4",
"@vue-storefront/nuxt": "~2.5.4",
"@vue-storefront/nuxt-theme": "~2.5.4",
"@vue-storefront/middleware": "~2.5.4",
"@vue-storefront/nuxt": "~2.5.4",
"@vue-storefront/nuxt-theme": "~2.5.4",
Please upgrade these packages I think the current version is 2.7.5 what's DO?
F
FabianClemenzβ€’378d ago
Sry πŸ™‚ DigitalOcean -> i got it running with setting glidejs to 3.5.2 i updated with yarn update:update and everything broke...
F
FabianClemenzβ€’378d ago
these are my deps
R
rohrigβ€’378d ago
have you upgraded those packages ☝️ ? I've seen the upgrade solve a lot of problems. Please give that a shot and let me know . . .
F
FabianClemenzβ€’378d ago
upgraded - is now deploying did these updates set glidejs to 3.5.2? while building i get this error (without failing to build)
[vsf-shop] [2023-04-20 09:13:38] β”‚ ERROR (node:1386) [DEP0128] DeprecationWarning: Invalid 'main' field in '/workspace/node_modules/@vue-storefront/nuxt-theme/package.json' of 'lib/module.js'. Please either fix that or report it to the module author
[vsf-shop] [2023-04-20 09:13:38] β”‚ (Use `node --trace-deprecation ...` to show where the warning was created)
[vsf-shop] [2023-04-20 09:13:38] β”‚ ERROR (node:1386) [DEP0128] DeprecationWarning: Invalid 'main' field in '/workspace/node_modules/@vue-storefront/nuxt-theme/package.json' of 'lib/module.js'. Please either fix that or report it to the module author
[vsf-shop] [2023-04-20 09:13:38] β”‚ (Use `node --trace-deprecation ...` to show where the warning was created)
` (before and after updating)
R
rohrigβ€’378d ago
is the repo you're working on public?
F
FabianClemenzβ€’378d ago
unfortunately not what to you need?
R
rohrigβ€’378d ago
Just wanted to poke around and see what I could find. . . No worries. you mentioned it's not failing to build . . . does that mean it's working?
F
FabianClemenzβ€’378d ago
yes it's working and the glidejs error is gone (after updating to 2.7.5 and manually setting glidejs to 3.5.2) thanks πŸ™‚ now i'm getting other errors, but i think thats related to our code πŸ™‚
R
rohrigβ€’378d ago
great πŸ˜„ , All the best in your bug squashing
F
FabianClemenzβ€’378d ago
thanks πŸ™‚ do you have a good documentation (or the beta for the ne docs) on how to set up the boilerplate stuff?
F
FabianClemenzβ€’378d ago
thanks! πŸ™‚
Want results from more Discord servers?
Add your server
More Posts
translating componentsI cannot find a way to translate the SfAddToCart button's label. How can I do that?How is checkout components rendering?In code i find this array of steps in checkout. But how i can, for example, change component for shiUnable to make API call on serverhttps://auction-dev.ycspl.in/weeklyauction while accessing this endpoint my network request is made issue with API callWhen I do yarn start it adds undefined to my request url but when I do yarn dev it works fine. Can ygetting this error while trying to deployjenkins@ip-172-31-24-212:~/workspace/auction-frontend$ npm install npm WARN read-shrinkwrap This verUnable to access cookies in composablescontext.$bagisto.config.app.$cookies.set('vsf-bagCust-token', loginResult.data.api_access_token); myVSF UI 2 with ecommerce-integration-boilerplateHi, I hope this isn't a silly question :). Is it possible to use the new UI with the boilerplate fouWhat version of Node?Noob question. I was trying to create a storefront with spree and got the following error: error @vuHow to add custom function to a composableimport { Context, useFacetFactory, FacetSearchResult } from '@vue-storefront/core'; import typGet product details and Static block from magento 2 backend to VueStoreFront.Hi, I have a doubt. I need to call static block from magento to vuestorefront homepage someone pleasPossible Memory leak in vuestorefront-apiHi, we are using vuestorefront 1, problem we facing at the moment is that with time the api server iHow to detect if a page has an error inside the layoutInside the default layout I need to detect if there is an error page displayed (like for example a 4Contribution via a specific issueHello. I opened this **issue** (https://github.com/vuestorefront/vue-storefront/issues/6891). I workUnable to change the color of the SFheaderunable to change the background-color of Sf header can someone please helpVSF Redis cache - dynamic parts will be disappeared after a whileHi everybody, we have implemented redis cache with VSF project (SSR Cache), but we faced an issue,Can't we use REST Apis with Vue storefrontIs it necessary to use GraphQl in vuestorefront?Is Bagisto integration with Vue Storefront Deprecated?Please explainWeird url parametersHello πŸ™‚ My Product Id seems whack or not VSF friendly. The are formatted as rest style urls: `"gidSSR Cache - default invalidation handlerAs I saw the previous channel archived, so here we can continue discussion about cache.. @7s @TautvVue Storefront Discord revampDear community! We would like to carry out a complete revamp of our Discord channels and one of th