Skip to content

Oxygen deployment fails: Disallowed operation called within global scope #14288

Open
@mciparelli

Description

@mciparelli

Before opening, please confirm:

JavaScript Framework

React

Amplify APIs

Authentication

Amplify Version

v6

Amplify Categories

auth

Backend

None

Environment information

Oxygen deployment

Describe the bug

Amplify seems to be using fetch or some other library globally that Cloudflare workers do not like and deployment fails.

Expected behavior

import { createUserPoolsTokenProvider } from 'aws-amplify/adapter-core'; should work

Reproduction steps

Install a remix app, import the line above in any project. Deploy to Shopify's Oxygen or any other cloudflare workers

Code Snippet

// Put your code below this line.

Log output

// Put your logs below this line


aws-exports.js

No response

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

No one assigned

    Labels

    AuthRelated to Auth components/categoryfeature-requestRequest a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions