-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed as not planned
Labels
Next.jsdependenciesPull requests that update a dependency filePull requests that update a dependency filequestionGeneral questionGeneral question
Description
Before opening, please confirm:
- I have searched for duplicate or closed issues and discussions.
- I have read the guide for submitting bug reports.
- I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
JavaScript Framework
Next.js
Amplify APIs
Not applicable
Amplify Version
v6
Amplify Categories
Not applicable
Backend
Other
Environment information
# Put output below this line
Describe the bug
i have the following bug and i have no idea how to solve it. Google doesn't help me anymore. Someone any idea?
The failure is that when i try
npm run build
it responsens:
Failed to compile.
./node_modules/@aws-amplify/auth/dist/esm/providers/cognito/apis/signInWithRedirect.mjs + 47 modules
Cannot get final name for export 'getDnsSuffix' of ./node_modules/@aws-amplify/core/dist/esm/clients/index.mjsBuild failed because of webpack errors
Expected behavior
it should create the build, but doesn't
Reproduction steps
npm run build
Code Snippet
// Put your code below this line.
Log output
// Put your logs below this line
aws-exports.js
import {type ResourcesConfig} from 'aws-amplify';
export const authConfig: ResourcesConfig['Auth'] = {
Cognito: {
userPoolId: 'eu-central-1_SSt3fgGcD',
userPoolClientId: '5sdfs8fsafdsdvdsafsq2gphi5dsfs',
identityPoolId: 'eu-central-1:023450d4-dfa43-123a-4533-dfsafdssa543,
allowGuestAccess: true,
}
};
export const apiConfig: ResourcesConfig['API'] = {
GraphQL: {
endpoint: 'https://dsfgafa4ew5w4xdgfd.appsync-api.eu-central-1.amazonaws.com/graphql',
region: 'eu-central-1', // optional
defaultAuthMode: 'userPool'
}
};
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
Metadata
Metadata
Assignees
Labels
Next.jsdependenciesPull requests that update a dependency filePull requests that update a dependency filequestionGeneral questionGeneral question