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

AMP OPTIMIZER Failed downloading latest AMP runtime data. Proxies need to be configured manually #20404

Closed
ahmedosama74574 opened this issue Dec 22, 2020 · 12 comments · Fixed by #21980
Assignees
Milestone

Comments

@ahmedosama74574
Copy link

Bug report

Describe the bug

When create a next js app using npx create-next-app on windows 10, I receive this error in terminal

AMP OPTIMIZER Failed downloading latest AMP runtime data. Proxies need to be configured manually, see https://github.com/ampproject/amp-toolbox/tree/main/packages/optimizer#fetch.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Run npx create-next-app

Expected behavior

I expect not to see any errors :)

Screenshots

Capture

System information

  • OS: Windows 10
  • Version of Node.js: 14.15.3
@ahmedosama74574 ahmedosama74574 added the bug Issue was opened via the bug report template. label Dec 22, 2020
@Mohammad-Afaque
Copy link

i am having that issue too.did you find any solution yet

@ahmedosama74574
Copy link
Author

I couldn't find a solution for it but the project created is compiling without any problems. This is probably more of a warning rather than an error. However, still waiting for some one to reply

@timneutkens
Copy link
Member

Can you try using next@canary?

@ahmedosama5200
Copy link

How do I specify that with create-next-app ?

@ahmedosama5200
Copy link

What is that amp optimizer for, any way ?

@Timer Timer added this to the iteration 16 milestone Jan 4, 2021
@Timer Timer added kind: bug and removed bug Issue was opened via the bug report template. labels Jan 4, 2021
@Timer
Copy link
Member

Timer commented Jan 4, 2021

We should inline the AMP runtime so it's not downloaded. That'd prevent this issue!

@Timer Timer modified the milestones: iteration 16, 10.x.x Jan 4, 2021
@ahmedosama5200
Copy link

@Timer So, until you do that, what do I do to create a new project. Is that amp optimizer important ?

@Timer Timer modified the milestones: 10.x.x, iteration 16 Jan 4, 2021
@ijjk ijjk added the point: 2 label Feb 8, 2021
@ijjk ijjk self-assigned this Feb 8, 2021
@kodiakhq kodiakhq bot closed this as completed in #21980 Feb 11, 2021
kodiakhq bot pushed a commit that referenced this issue Feb 11, 2021
This adds ncc'ing the AMP optimizer package to speed up install times and cache the runtime. 

Closes: #20404
@ijjk
Copy link
Member

ijjk commented Feb 11, 2021

Hi, this has been updated in the latest canary of Next.js v10.0.7-canary.7, please update and give it a try!

@ahmedosama5200
Copy link

@ijjk How do I specify the version with create-next-app. I can't find anything in the docs

@ijjk
Copy link
Member

ijjk commented Feb 15, 2021

@ahmedosama5200 you can specify the version after install with create-next-app with yarn add next@10.0.7-canary.7 or npm i next@10.0.7-canary.7

@ahmedosama5200
Copy link

@ijjk I am not receiving any errors now. I think it works

@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants