Open PassionPenguin opened 11 months ago
npm run build
==>
hoarfroster@HF hfrecipe % npm run build
npm run build
> hello-next@1.0.0 build
> next build
▲ Next.js 14.0.2
- Environments: .env.local
✓ Creating an optimized production build
✓ Compiled successfully
Linting and checking validity of types ...
We detected TypeScript in your project and reconfigured your tsconfig.json file for you. Strict-mode is set to false by default.
The following mandatory changes were made to your tsconfig.json:
- isolatedModules was set to true (requirement for SWC / Babel)
Linting and checking validity of types ..Failed to compile.
./node_modules/@microsoft/microsoft-graph-client/src/authentication/azureTokenCredentials/index.ts:7:10
Type error: Re-exporting a type when 'isolatedModules' is enabled requires using 'export type'.
5 | * -------------------------------------------------------------------------------------------
6 | */
> 7 | export { TokenCredentialAuthenticationProviderOptions } from "./ITokenCredentialAuthenticationProviderOptions";
| ^
8 | export { TokenCredentialAuthenticationProvider } from "./TokenCredentialAuthenticationProvider";
9 |
i know im bumping old issues but this still persists and renders large parts of the application unsuable
I had the same issue. I fixed it by adding index
to the import, like this:
import {TokenCredentialAuthenticationProvider} from '@microsoft/microsoft-graph-client/authProviders/azureTokenCredentials/index';
I had the same issue. I fixed it by adding
index
to the import, like this:import {TokenCredentialAuthenticationProvider} from '@microsoft/microsoft-graph-client/authProviders/azureTokenCredentials/index';
i have submitted an PR and its still in review, but i also made my quick wrapper for it since i only needed the sendMail functionality
Bug Report
Prerequisites
For more information, see the
CONTRIBUTING
guide.Description
/src/authentication/azureTokenCredentials/index.ts:7:10
Console Errors: no
Screenshots:
Steps to Reproduce
Expected behavior: no throw
Actual behavior: throw:
Additional Context
running both on vercel and locally throws
Usage Information
Request ID - N/A
SDK Version - [SDK version you are using]