AlaskaAirlines / auro-input

Custom HTML element for inputting string data in forms
https://auro.alaskaair.com/components/auro/input
Apache License 2.0
2 stars 4 forks source link

Named export 'AuroFormValidation' not found #298

Closed blackfalcon closed 5 months ago

blackfalcon commented 5 months ago

Please verify the version of auro-input you have installed

@latest

Please describe the bug

Element has issue with named export and not supporting ESM/SSR development

@aurodesignsystem/auro-input/src/base-input.js:20
import { AuroFormValidation } from '@aurodesignsystem/auro-formvalidation/src/validation.js';
         ^^^^^^^^^^^^^^^^^^
SyntaxError: Named export 'AuroFormValidation' not found. The requested module '@aurodesignsystem/auro-formvalidation/src/validation.js' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:

import pkg from '@aurodesignsystem/auro-formvalidation/src/validation.js';

Reproducing the error on the docsite

This issue cannot be reproduced on the Auro docsite

Expected behavior

No error log

Exit criteria

This issue can be resolved once the library is correctly called into the base-input.js and the auro-formvalidation has been updated.

What browsers are you seeing the problem on?

No response

Additional context

There is a companion issue to address auro-formvalidation. This issue cannot be closed until this issue is resolved and an update is released.

blackfalcon commented 5 months ago

This issue is BLOCKED until this PR is released