Skip to content

eBay / nice-form-react with WebPack #12

@stevexm

Description

@stevexm

Had a small issue to note, when using nice-form-react with WebPack. Trying to load the module as per the documentation:

//nice-form adapter configuration for antd
import antdAdapter from '@ebay/nice-form-react/adapters/antdAdapter';
import { config as niceFormConfig } from '@ebay/nice-form-react';
niceFormConfig.addAdapter(antdAdapter);

and WebPack complains that it cannot find the antdAdapter module. Simple change to:

import antdAdapter from '@ebay/nice-form-react/lib/esm/adapters/antdAdapter';

and everything works as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions