-
Notifications
You must be signed in to change notification settings - Fork 840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Cannot find module './assets/lock'
when using <EuiFieldPassword /> component
#5286
Comments
Meteor is polymorphic/server-side rendering, correct? If so I believe you'll need to consume our EuiIcons in this specific manner: https://github.com/elastic/eui/blob/master/wiki/consuming.md#failing-icon-imports |
Thanks @constancecchen ! It works, except I'm using typescript and had to add //@ts-ignore
import { appendIconComponentCache } from '@elastic/eui/es/components/icon/icon'; Is there a type definition package for Eui somewhere? I can't seem to find it. |
@chandlerprall Do you know if missing types when using the above icon workaround has always been an issue in the past or if it's related to #5212 somehow? |
Ah, it's likely always been an issue, we do not provide type definitions for any import path except |
I did a quick grep through Kibana and I can confirm the teams using We should likely close this in favor of #5305 which was also opened recently and addresses the Typescript issue specifically. |
Cannot find assets
./assets/lock
and./assets/eye
when using the component.Login Component
App.tsx
package.json
Eui Version: 40.0.0
The text was updated successfully, but these errors were encountered: