You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On trying to add Next.js dependency, the following error is reported:
➤ YN0000: ┌ Link step
➤ YN0007: │ @ampproject/toolbox-optimizer@npm:2.4.0 [717c6] must be built because it never did before or the last one failed
➤ YN0009: │ @ampproject/toolbox-optimizer@npm:2.4.0 [717c6] couldn't be built successfully (exit code 1, logs can be found here: /private/var/folders/xb/mkvj52yn6f174632nfmgf5f1nfkbf4/T/xfs-7cf27f17/build.log)
➤ YN0009: │ @ampproject/toolbox-optimizer@npm:2.4.0 [717c6] couldn't be built successfully (exit code 1, logs can be found here: /private/var/folders/xb/mkvj52yn6f174632nfmgf5f1nfkbf4/T/xfs-7cf27f17/build.log)
➤ YN0000: └ Completed in 11.37s
The error in the build log is:
Error: @ampproject/toolbox-optimizer tried to access dom-serializer, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
Required package: dom-serializer (via "dom-serializer")
Required by: @ampproject/toolbox-optimizer@virtual:717c60bb7e1f18db4fa28a328136d908d2f0be772ac81744071e39e823bce1152cb8cd598e20574dd33c9c21bf4563290d0b9cc940ed521d64045a52208cdc1f#npm:2.4.0
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
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
locked as resolved and limited conversation to collaborators
Jan 29, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug report
Describe the bug
On trying to add Next.js dependency, the following error is reported:
The error in the build log is:
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
yarn add [email protected] react react-dom
Expected behavior
Next.js dependency can be installed without errors.
System information
Additional context
There is a workaround. I found the installation works just fine when using
[email protected]
The text was updated successfully, but these errors were encountered: