Skip to content

ES6 module no export Terminal #2878

@elgs

Description

@elgs

When I follow the doc to import Terminal as an ES6 module.

The recommended way to load xterm.js is via the ES6 module syntax:

import { Terminal } from 'xterm';

I got the following error. I opened the xterm.js and found it's an minified js file and it indeed didn't export Terminal.

The requested module '../../../node_modules/xterm/lib/xterm.js' does not provide an export named 'Terminal'

I'm not using any building tools. I just used plain ES6 import syntax.

Metadata

Metadata

Assignees

Labels

area/buildRegarding the build processtype/enhancementFeatures or improvements to existing features

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions