Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build AMD bundles with externals from npm thin packages #10751

Open
SergeyMaltsev opened this issue Feb 6, 2025 · 0 comments
Open
Assignees
Labels
bug Something isn't working forum Issues from forum large-account Reported by large customer OEM OEM customer

Comments

@SergeyMaltsev
Copy link
Contributor

Forum post

Most likely the problem is that Rollup fails while resolving existing Circular dependencies in our code and that causes bryntum-grid-thin.js includes @bryntum/core-thin code inside and this finally shows the initial Runtime error with

 The Bryntum Grid bundle was loaded multiple times by the application

Need to resolve all Circular dependencies and check if that helps.
The same would probably happen if we use rollup with Bryntum sources.

Reproduce

The very basic app with rollup is attached:

amd-build.zip

npm i
npx rollup --config rollup.amd.mjs

Result: bryntum-grid-thin.js includes @bryntum/core-thin code instead of including it externally from bryntum-core-thin.js

@SergeyMaltsev SergeyMaltsev added bug Something isn't working forum Issues from forum large-account Reported by large customer OEM OEM customer labels Feb 6, 2025
@SergeyMaltsev SergeyMaltsev self-assigned this Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum large-account Reported by large customer OEM OEM customer
Projects
None yet
Development

No branches or pull requests

1 participant