Skip to content

SSR based usage needs "type": "module" in package.json #3

@balaji-b-v

Description

@balaji-b-v

Am using this library in SSR based web application. While on server side it is throwing this error when serving locally/ on server

[vite] Error when evaluating SSR module in components.ts: failed to import "locally-unique-id-generator"
| node_modules.pnpm\locally-unique-id-generator@0.1.8\node_modules\locally-unique-id-generator\dist\locally-unique-id-generator.esm.js:19
export { newUniqueId as default };

OS: local: Windows 10, server : AMZ linux

solution recommended: add type: module in package json

image

I would be grateful if you can quickly incorporate this change to the library

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