-
Notifications
You must be signed in to change notification settings - Fork 213
Open
Description
Describe the bug
The RequestError class is no longer exported, although it still appears in the type declaration. This bug was introduced in version 1.803.0.
To Reproduce
With "type": "module":
import { RequestError } from "@bigcommerce/checkout-sdk";import { RequestError } from "@bigcommerce/checkout-sdk";
^^^^^^^^^^^^
SyntaxError: Named export 'RequestError' not found. The requested module '@bigcommerce/checkout-sdk' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
With "type": "commonjs":
const { RequestError } = require("@bigcommerce/checkout-sdk");
console.log(RequestError);Logs undefined.
Expected behavior
RequestError should be available as a top-level export to avoid breaking changes.
Desktop (please complete the following information):
- OS: N/A
- Browser N/A
- Version N/A
Smartphone (please complete the following information):
- Device: N/A
- OS: N/A
- Browser N/A
- Version N/A
Additional context
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels