Skip to content

Relative imports can cause issues during builds. #1165

Closed
@Hyperkid123

Description

@Hyperkid123

Discussed in #1164

Originally posted by steverhoades October 31, 2021
I'm curious if it was a design choice to not have these available from the base package.
e.g. I must explicitly import this from @data-driven-forms/react-form-renderer/use-form-api or @data-driven-forms/react-form-renderer/use-field-api respectively vs. import {useFieldAPi} from @data-driven-forms/react-form-renderer.

I only ask as I've spent the last hour or so debugging why my microapp wasn't playing nice with it's application shell. Turns out it was moving the dependencies from the microapp to the shell that broke as I didn't explicitly declare use-form-api and use-field-api as dependency externals.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions