Skip to content

TypeError: nanoid is not a function at new Input #1727

@Meryldominguez

Description

@Meryldominguez

Getting an unexpected error while using html-sanitizer which depends on postcss.

TypeError: nanoid is not a function
    at new Input (input.js:58:1)
    at parse (parse.js:8:1)
    at index.js:460:1
    at index.js:18:1
    at Array.forEach (<anonymous>)
    at each (index.js:17:1)
    at Object.onopentag (index.js:283:1)
    at Parser.onopentagend (Parser.js:175:1)
    at Tokenizer.stateBeforeAttributeName (Tokenizer.js:267:1)
    at Tokenizer.parse (Tokenizer.js:646:1)

After tracing my callstack it seems that webpack is not building this package correctly.

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