Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Missing dependency lodash-es #2

Open
MartinSchmidt123 opened this issue Nov 27, 2023 · 0 comments
Open

Missing dependency lodash-es #2

MartinSchmidt123 opened this issue Nov 27, 2023 · 0 comments

Comments

@MartinSchmidt123
Copy link

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/react-hook-form-chakra-fields@0.1.7_@chakra-ui+icons@2.1.1_@chakra-ui+react@2.8.1_@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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant