Skip to content

Missing dependency lodash-es #2

Open
@MartinSchmidt123

Description

@MartinSchmidt123

Thanks for publishing this project. It looks really promising.
I noted a few things during the initial setup and will create separate issues.

Using pnpm with vite, I got the following error during build:

Error: [vite]: Rollup failed to resolve import "lodash-es" from "[..]/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@emotion+re_kecz67imlc4dja4o5pzcfdqrli/node_modules/react-hook-form-chakra-fields/dist/react-hook-form-chakra-fields.esm.js".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`

Installing lodash-es solved it:

pnpm add lodash-es

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