@azure/identity for javascript depends on keytar that has an error

Kevin Burton 1 Reputation point
2020-08-25T19:53:05.27+00:00

I have a Gatsby/React project that fails to build with

success Building production JavaScript and CSS bundles - 21.608s

 ERROR #98123  WEBPACK

Generating SSR bundle failed

Unexpected character '�' (1:2)

File: node_modules\keytar\build\Release\keytar.node:1:2

not finished Building static HTML for pages - 10.963s

When I do yarn why keytar I get

yarn why keytar
yarn why v1.22.4
[1/4] Why do we have the module "keytar"...?
[2/4] Initialising dependency graph...
[3/4] Finding dependency...
[4/4] Calculating file sizes...
=> Found "keytar@5.6.0"
info Reasons this module exists
   - "@azure#identity" depends on it
   - Hoisted from "@azure#identity#keytar"
info Disk size without dependencies: "11.36MB"
info Disk size with unique dependencies: "11.93MB"
info Disk size with transitive dependencies: "14.43MB"
info Number of shared dependencies: 49
Done in 1.52s.

My question is how do I get around this dependency/error?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,936 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.