20

When I try to login in expo I got this error :

[exp] Set EXPO_DEBUG=true in your env to view the stack trace.

Do you know where exactly I have to set the value of EXPO_DEBUG?

NelsonGon
  • 13,015
  • 7
  • 27
  • 57
Ansyori
  • 2,807
  • 3
  • 29
  • 37

12 Answers12

19

EXPO_DEBUG is an environment variable, so you can set it by typing export EXPO_DEBUG=true in your shell.

Daniel Neal
  • 4,165
  • 2
  • 20
  • 34
11

Just simply put the following commands in Windows os in sequence it will definitely work.

1:

cd Project_Dir>Set EXPO_DEBUG=true

2:

cd Project_Dir>expo start

This is working fine for me.

David Buck
  • 3,752
  • 35
  • 31
  • 35
Rahul Patel
  • 326
  • 2
  • 10
6

find the following solution according to os

Linux OS then type in shell export EXPO_DEBUG=true

Windows OS then type in console set EXPO_DEBUG=true

Mac os then type in console set EXPO_DEBUG=true

4

When you add some library into your project. then this type of problem occurs. This problem also occur for me when i try to add some navigator library into my react native project it happens then...

so if you are in a Linux OS then type in shell export EXPO_DEBUG=true

or if you are in a Windows OS then type in console set EXPO_DEBUG=true

After adding the line in console/Shell i hope project will work again.

3

You can do it simple:

$env:EXPO_DEBUG = 'true'

in power shell

Idan
  • 3,604
  • 1
  • 28
  • 33
3

This issue arises with the latest version on node which in my case is 12.13.1.

There are suppose to be some changes made in the node_module.

Go to node_module/metro-config/src/defaults/blacklist.js and change your var sharedBlacklist to

var sharedBlacklist = [
/node_modules[\/\\]react[\/\\]dist[\/\\].*/,
/website\/node_modules\/.*/,
/heapCapture\/bundle\.js/,
/.*\/__tests__\/.*/ 
];
Saif Khan
  • 484
  • 1
  • 7
  • 21
2

MY problem was solve by running

npm install

inside current Project directory if it still not work
than update expo to new latest version and restart project again

2

This works.

exp start Cancel ctrl c then do exp build:android.

Jaywant Narwade
  • 145
  • 1
  • 4
1

I deleted node_module and then re run npm install, and it worked

1

in windows use cmd type set EXPO_DEBUG = 'true' then close cmd open again in the project file type expo start if it works graduation :) if not: in project path open node_modules folder and open this path node_module/metro-config/src/defaults/blacklist.js edit the file replace var haredBlacklist ... to this code

var sharedBlacklist = [
/node_modules[\/\\]react[\/\\]dist[\/\\].*/,
/website\/node_modules\/.*/,
/heapCapture\/bundle\.js/,
/.*\/__tests__\/.*/ 
];
Omar bakhsh
  • 896
  • 11
  • 18
0

just open your command prompt run Set EXPO_DEBUG=ture (not a project directorty) go to project directory run expo start(in a project directory)

Ravinsan
  • 1
  • 4
0

in mac OS export EXPO_DEBUG=true

or if you are in a Windows OS set EXPO_DEBUG=true

Keshav Gera
  • 10,807
  • 1
  • 75
  • 53