Glyphmaps path issue
joemewes opened this issue · 2 comments
NB: Sorry if this is the wrong repo for the individual library issues.
Environment
- @react-native-vector-icons/material-design-icons version: 7.4.47-alpha.14
- Storybook/React-Native-Web
- Webpack
Description
It looks like the lib compiled paths include a relative path for the glyph maps as follows:
import glyphMap from '../glyphmaps/MaterialDesignIcons.json'
This results in the following error:
ERROR in ./node_modules/@react-native-vector-icons/material-design-icons/lib/module/index.js 1:268-316
Module not found: Error: Can't resolve '../glyphmaps/MaterialDesignIcons.json'
I may have something wrong in my setup, but it looks like the compiled lib paths in the released lib wont match that of the src
... also in the lib.
Reproducible Demo
Just install "@react-native-vector-icons/material-design-icons": "^7.4.47-alpha.14",
and try to build app/project.
This should be fixed in the latest release. Thanks for testing in RNW. Let me know if you notice any other issues or the install instructions could be improved
I just realised I haven't updated the install instructions for the new libraries yet, that section needs a complete overhaul