Skip to content

SyntaxError: The requested module 'adminjs/bundler' does not provide an export named 'external' #10

@allthesignals

Description

@allthesignals

Trying to run the CLI command npx adminjs-themes generate "Mayflower" but it results in a syntax error:

../node_modules/@adminjs/themes/dist/cli/actions/bundleTheme.js:9
import { external, globals } from 'adminjs/bundler';
         ^^^^^^^^
SyntaxError: The requested module 'adminjs/bundler' does not provide an export named 'external'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:180:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:263:5)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:578:26)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:116:5)

Node.js v22.14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions