Skip to content

vue_3_sanitize__WEBPACK_IMPORTED_MODULE_20__.createSanitize) is not a function #8

@pratiweb

Description

@pratiweb

Error after using vue3

const homapp = createApp({
        el, 
        template: '<section-discover-ireland />',
        mounted() {
          resolve(true);
        }
      });
      const sanitize = createSanitize();
      homapp.config.globalProperties.$sanitize = sanitize;

Using like below

  renderString(value) {
    return pipe(fromCharCode, this.$sanitize)(value);
    // return pipe(fromCharCode)(value);
  },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions