Skip to content

Error: Cannot find module 'msal' #361

Closed
@whatl3y

Description

@whatl3y

Bug Report

Prerequisites

  • Can you reproduce the problem?
  • Are you running the latest version?
  • Are you reporting to the correct repository?
  • Did you perform a cursory search?

For more information, see the CONTRIBUTING guide.

Description

Building my app in a docker container and running v2.2.0 of @microsoft/microsoft-graph-client in Node.js 14.13.1.

This is a new error that I didn't experience last week when building the container, but I didn't notice any recent changes to package.json or ImplicitMSALAuthenticationProvider.ts that would cause this.

Console Errors: [Is there any console error]

Error: Cannot find module 'msal'
Require stack:
- /usr/app/node_modules/@microsoft/microsoft-graph-client/lib/src/ImplicitMSALAuthenticationProvider.js
- /usr/app/node_modules/@microsoft/microsoft-graph-client/lib/src/index.js

Screenshots: [If applicable, add screenshots to help explain your problem]

N/A

Steps to Reproduce

  1. Add @microsoft/microsoft-graph-client to your Node.js project.
  2. import { Client } from '@microsoft/microsoft-graph-client' from a file in your project
  3. See error

Expected behavior: [What you expected to happen]

Not error

Actual behavior: [What actually happened]

Error above

Additional Context

Add any other context about the problem here..

Usage Information

SDK Version - [SDK version you are using]

v2.2.0

  • Node (Check, if using Node version of SDK)

Node Version - [The version of Node you are using]

14.13.1

  • Browser (Check, if using Browser version of SDK)

Browser Name - [The name of Browser that you are using for SDK]

Version - [The version of the browser you are using]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions