Skip to content

[BUG] XSS library loading issue in Vue Starter Template Extended #2280

@macster84

Description

@macster84

Problem descriprion and current behaviour

I followed the setup instructions for the Vue Starter Template Extended.

Unfortunately I get a console error being logged when trying to open any product detail page:

Uncaught (in promise) SyntaxError: The requested module '/_nuxt/@fs/Users/alu/dev/project/vue-starter-template/node_modules/xss/lib/index.js?v=b134f031' does not provide an export named 'default' (at CmsElementProductDescriptionReviews.vue:7:8)

The error relates to the line below in CmsElementProductDescriptionReviews.vue

import xss from "xss";

I somehow believe it's related to vue-starter-template being served from the filesystem in package.json according to the instructions:

  "dependencies": {
-   "vue-starter-template": "workspace:*"
+   "vue-starter-template": "file:../vue-starter-template"
  },

Expected Behavior

I can browse any product detail page without errors.

Steps To Reproduce

  1. Follow the setup instructions to run Vue Starter Template Extended.
  2. Open the product detail page for any projects (e.g. Soy candles)

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions