department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
282 stars 203 forks source link

When trying to update the import for the Toggler from 'impor... #72523

Closed platform-support-slack-integration[bot] closed 10 months ago

platform-support-slack-integration[bot] commented 10 months ago

Submitted By: peri.mclaren Topic: Flipper Team: Backend Support

When trying to update the import for the Toggler from 'import { Toggler } from 'platform/utilities/feature-toggles';' to 'import { Toggler } from '@department-of-veterans-affairs/platform-utilities/feature-toggles';' I ran into the following error : Module not found: Error: Can't resolve '../../../platform/utilities/feature-toggles/index.js/Toggler' in '/Users/peri.mclaren/Documents/repos/vets-website/src/applications/claims-status/components'.

I think there might be something wrong with the index file. Should this file be a .jsx? I think babel is looking for a .js .

platform-support-slack-integration[bot] commented 10 months ago

Slack Thread Link: https://dsva.slack.com/archives/CBU0KDSB1/p1703195955507349