escapeStringRegexp = require('escape-string-regexp

Hello folks.
Im facing the following error.
Can, anyone, help me?

/usr/local/lib/node_modules/expo-cli/node_modules/chalk/index.js:2
const escapeStringRegexp = require(‘escape-string-regexp’);
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:437:25)
at Object.Module._extensions…js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object. (/usr/local/lib/node_modules/expo-cli/bin/expo.js:13:5)
at Module._compile (module.js:449:26)
at Object.Module._extensions…js (module.js:467:10)
at Module.load (module.js:356:32)

Can you run expo diagnostics and paste the output here? Also, what command were you trying to run?

I have the same problem, with the new SDK version 34 project

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.