Skip to content

getDnsSuffix Webpack Error On Build #13253

@steffen-tomm

Description

@steffen-tomm

Before opening, please confirm:

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.mjs

Build 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 filequestionGeneral question

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions