Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

748
Visualizações
Unable to resolve module expo-constants

I was installed an expo-constant for a test after that I unistalled the expo-constant by

npm uninstall expo-constants

Now when I run my app an error appears:

Unable to resolve module expo-constants from C:\Users..\node_modules\expo-font\build\FontLoader.js: expo-constants could not be found within the project.

Any ideas on what else I can try to resolve this?

The full error below:

If you are sure the module exists, try these steps:
 1. Clear watchman watches: watchman watch-del-all
 2. Delete node_modules and run yarn install
 3. Reset Metro's cache: yarn start --reset-cache
 4. Remove the cache: rm -rf /tmp/metro-*
  1 | import { CodedError } from '@unimodules/core';
  2 | import { Asset } from 'expo-asset';
> 3 | import Constants from 'expo-constants';
    |                        ^
  4 | import { Platform } from 'react-native';
  5 | import ExpoFontLoader from './ExpoFontLoader';
  6 | const isInClient = Constants.appOwnership === 'expo';
about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

Try Updating packages to the latest version.

npm update

give a try to install with --force flag as well if the update has not worked. eg:

npm install --force
about 4 years ago · Juan Pablo Isaza Relatório

0

you can add this in your package.json

"expo-yarn-workspaces": { "symlinks": ["expo-constants"] }

Regards

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda