Skip to content

Attempted import error: 'URL' is not exported from 'url' (imported as 'URL'). #1856

Answered by GodderE2D
GodderE2D asked this question in Q&A
Discussion options

You must be logged in to vote

Fixed in Next.js 12

This issue apparently has been fixed after upgrading to Next.js 12. However, I highly doubt that this issue is because of Next.js 11, try re-installing your packages (rm -r node_modules && yarn install). If it still doesn't work, then try upgrading to Next.js 12.

Sorry for any inconvenience caused 😅

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GodderE2D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant