Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on startup - Could not resolve "../internals/export" and "../internals/regexp-exec" #7

Open
melbeltagy opened this issue Jul 14, 2022 · 1 comment

Comments

@melbeltagy
Copy link

After installing the library and when I start the app, I get the following error in console:

✘ [ERROR] Could not resolve "../internals/export"

node_modules/yup-phone-lite/dist/yup-phone-lite.esm.js:1:90:
  1 │ ...er}from'libphonenumber-js';var d=require("../internals/export"),f=require("../internals/regexp-exec");d...
    ╵                                             ~~~~~~~~~~~~~~~~~~~~~

✘ [ERROR] Could not resolve "../internals/regexp-exec"

node_modules/yup-phone-lite/dist/yup-phone-lite.esm.js:1:123:
  1 │ ...quire("../internals/export"),f=require("../internals/regexp-exec");d({target:"RegExp",proto:!0,forced:/...
    ╵                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~

5:38:32 PM [vite] error while updating dependencies:
Error: Build failed with 2 errors:
node_modules/yup-phone-lite/dist/yup-phone-lite.esm.js:1:90: ERROR: Could not resolve "../internals/export"
node_modules/yup-phone-lite/dist/yup-phone-lite.esm.js:1:123: ERROR: Could not resolve "../internals/regexp-exec"

@csandman
Copy link
Owner

csandman commented Jul 14, 2022

Can you let me know if the most recent version fixes it? And if not, can you try version 1.1.0 and let me know if that one works?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants