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.
19 Replies
rohrig
rohrigβ€’2y ago
Hi @FabianClemenz πŸ‘‹ , which node version are you using?
FabianClemenz
FabianClemenzOPβ€’2y ago
Hi @rohrig , i'm using 16.14.2
FabianClemenz
FabianClemenzOPβ€’2y 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...
rohrig
rohrigβ€’2y ago
@FabianClemenz can you create a minimal reproduction or tell me the exact steps I need to do to get where you are?
rohrig
rohrigβ€’2y 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...
FabianClemenz
FabianClemenzOPβ€’2y 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
rohrig
rohrigβ€’2y 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?
FabianClemenz
FabianClemenzOPβ€’2y ago
Sry πŸ™‚ DigitalOcean -> i got it running with setting glidejs to 3.5.2 i updated with yarn update:update and everything broke...
FabianClemenz
FabianClemenzOPβ€’2y ago
these are my deps
rohrig
rohrigβ€’2y 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 . . .
FabianClemenz
FabianClemenzOPβ€’2y 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)
rohrig
rohrigβ€’2y ago
is the repo you're working on public?
FabianClemenz
FabianClemenzOPβ€’2y ago
unfortunately not what to you need?
rohrig
rohrigβ€’2y 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?
FabianClemenz
FabianClemenzOPβ€’2y 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 πŸ™‚
rohrig
rohrigβ€’2y ago
great πŸ˜„ , All the best in your bug squashing
FabianClemenz
FabianClemenzOPβ€’2y ago
thanks πŸ™‚ do you have a good documentation (or the beta for the ne docs) on how to set up the boilerplate stuff?
FabianClemenz
FabianClemenzOPβ€’2y ago
thanks! πŸ™‚
Want results from more Discord servers?
Add your server