Skip to content

Bug: Webpack build: in postcss Uncaught (in promise) TypeError: nanoid is not a function #6

@mhsdesign

Description

@mhsdesign

at node_modules/postcss/lib/input.js:58:1

With create-react-app in hmr mode - i dindt tests the build.

Seems to be related to the differences in cjs and esm see ai/nanoid#205

Looking at the working examples - esbuild seems to handle it well but not webpack

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