AlaskaAirlines / auro-checkbox

Custom element for the purpose of allowing users to select one or more options of a limited number of choices.
https://auro.alaskaair.com/components/auro/checkbox
Apache License 2.0
0 stars 1 forks source link

relative path to checkmark SVG file is breaking usage of the the component as a JS import #107

Closed jason-capsule42 closed 1 year ago

jason-capsule42 commented 1 year ago

Please verify the version of auro-checkbox you have installed

@latest

Please describe the bug

When the component is installed in another project using webpack as a JS import, that projects build breaks because it can not find the SCG file using the relative path.

ERROR in ./node_modules/@aurodesignsystem/auro-checkbox/src/auro-checkbox.js 12:0-94

Module not found: Error: Can't resolve '../node_modules/@alaskaairux/icons/dist/icons/interface/check-lg_es6.js' in '/Users/ethan.milleralaskaair.com/code/LoungeMembership-Web/node_modules/@aurodesignsystem/auro-checkbox/src'

Reproducing the error

None

Expected behavior

Webpack build should run correctly.

What browsers are you seeing the problem on?

No response

Additional context

No response

Exit criteria

The path should be updated to not use a relative url. i.e. remove ../node_modules/ from the start of the path.