expo/vector-icons

You may need an appropriate loader to handle this file type: @expo/vector-icons/build/createIconSet.js

losintikfos opened this issue · 13 comments

Any idea why I am getting below error during npm run dev. Using react: ^18.2.0, next: ^12.2.0 and @expo/vector-icons: ^13.0.0.

error - ./node_modules/@expo/vector-icons/build/createIconSet.js
Module parse failed: Unexpected token (39:27)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|                 }
|                 if (!this.state.fontIsLoaded) {
>                     return <Text />;
|                 }
|                 return (<RNVIconComponent ref={(view) => {

I have same problem when using storybook and writing story for component that includes some icon (for example <Ionicons/>

Hitting this error as well.

UPDATE
We are getting this error when we upgraded from "@expo/next-adapter": "4.0.13" to "@expo/next-adapter": "5.0.0"

I have the same I issue here, any updates

+1 on this; anyone find a work around?

dezerb commented

@losintikfos any updates?

i can't believe that after a year of opening this, people (including me) are still not finding a solution!

i tried every next.config.js transpile with no success

deeeed commented

+1...