DEV Community

Danijel-Enoch
Danijel-Enoch

Posted on

SyntaxError: Identifier 'e' has already been declared Nextjs

Image description

If you are trying to build a next js code and you keep on facing this error just know that this error is caused by a package you probably installed or imported.

If you search your .next build files for var e you would discover that it is declared twice in the code . So check the bot declaration of the e variable and see which dependencies they are connected to . For me it was an injective-sdk dependency.

Note that in some occasion this could be you just declaring the e variable twice in you code.

Top comments (0)