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

SyntaxError: The requested module 'proxy-from-env' does not provide an export named 'getProxyForUrl' #18

Open
lenny-mo opened this issue Nov 4, 2022 · 0 comments

Comments

@lenny-mo
Copy link

lenny-mo commented Nov 4, 2022

I try to run a nft-marketplace demo by using 'proxy-from-env' module. But the problem is, when I run "npm run dev" on terminal, it gives an error information which is "SyntaxError: The requested module 'proxy-from-env' does not provide an export named 'getProxyForUrl'".

And I found that there is really no export keyword for "getproxyforurl" function in "index.js" file, but I can find "export function getProxyForUrl(url: string|Url): string;" in "index.d.ts" file.

In fact, I am not good at javascript, and I don't know if this is the reason why my website is throwing this problem. Maybe I should add 'export' keyword before the 'function getProxyForUrl(url)' in "index.js" file.

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

1 participant