Skip to content

eBay / nice-form-react with WebPack #12

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions